Code syntax disappeared for certain coding language when nesting a code block inside a callout

Steps to reproduce

In my case, when I nest a SystemVerilog code block inside a callout, its code syntax disappeared; the code syntax for SystemVerilog is normal when placing it outside a callout in editing mode, but disappearing in reading mode.

The example code and screenshots are given as following (testing in the sandbox vault):

  • code block inside a callout
> [!example] Comments example
>  ```SystemVerilog
>  module X (input a, output b);
>  //...
>  endmodule
>  
>  //single line comments
>  ...
>  //multi-line comments
>  /*
>  first line  // you can use `//` to comment anywhere
>  second line
>  ...
>  */
>  ```

image

  • code block outside a callout
  ```systemverilog
  module X (input a, output b);
  // ...
  endmodule
  
  //single line comments
  ...
  //multi-line comments
  /*
  first line   // you can use `//` to comment anywhere
  second line
  ...
  */
  ```

In editing mode
image
In reading mode
image

  • change the code block to another language, for example Verilog, the displaying is normal.
> [!example] Comments example
>  ```Verilog
>  module X (input a, output b);
>  //...
>  endmodule
>  
>  //single line comments
>  ...
>  //multi-line comments
>  /*
>  first line  // you can use `//` to comment anywhere
>  second line
>  ...
>  */
>  ```

image

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

The apearance of a code block inside a callout is normal for all supported coding language.

Actual result

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.5
Operating system: Windows 11 Home 10.0.22631
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Seen reproduce part

If you switch to Reading view, you’ll see it looks the same as in the rendered callout with no syntax coloring.


Source mode and Live Preview do not support PrismJS, and may render syntax highlighting differently.

https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code+blocks

I don’t see SystemVerilog on the PrismJS supported languages list: https://prismjs.com/#supported-languages.

Oops, I didn’t notice that SystemVerilog is not supported on PrismJS.
Thanks for the feedback