obsidian-shiki-plugin icon indicating copy to clipboard operation
obsidian-shiki-plugin copied to clipboard

Code blocks not being able to render in table in reading mode when using sheets-extended plugin

Open lethefrost opened this issue 5 months ago • 0 comments

  • [x] The Plugin is up to date
  • [x] Obsidian is up to date

Describe the bug/To Reproduce If this sheets extended plugin and shiki highlighter are both turned on, and you have a table with embedded code block:

| table head                            |
| ------------------------------------- |
| ![[any note containing a code block]] |

The rendering looks correct in the live preview mode, and we can see the code blocks in the embedded note. But in reading mode, while the other non code block contents will still render, the code blocks will just disappear from the flow. Looking into the DOM tree, the code block in embedded note inside a table cell does have an empty <div class="block-language-*"></div> element in place.

When either sheets extended or shiki highlighter is turned off, the rendering in reading mode looks right.

Screenshots

in live preview mode in reading mode
Image Image

Occurs on

  • [ ] Windows
  • [x] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS

Plugin version 0.5.0

Additional context Thank you so much for your great work on this plugin! I'd really appreciate it if you could take a look at this and hopefully can fix the compatibility issue.

lethefrost avatar May 19 '25 05:05 lethefrost