Skip to content

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

@lethefrost

Description

@lethefrost
  • The Plugin is up to date
  • 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
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions