obsidian-shiki-plugin
obsidian-shiki-plugin copied to clipboard
Code blocks not being able to render in table in reading mode when using sheets-extended plugin
- [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 |
|---|---|
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.