mProjectsCode / obsidian-shiki-plugin

MIT License
43 stars 6 forks source link

showLineNumbers feature does not work for code blocks inside of callouts #5

Open Trikzon opened 6 months ago

Trikzon commented 6 months ago

Describe the bug When a code block is put inside of a callout with the showLineNumbers feature enabled, line numbers are not rendered.

To Reproduce Try the following markdown:

```python showLineNumbers
print("Hello World!")

[!note]

print("Hello World!")

It renders like image

Expected behavior Line numbers should render in callouts when the feature is enabled.

Occurs on

Plugin version 0.2.4

mProjectsCode commented 6 months ago

This seems to be a limitation of the Obsidian API. The section info for code blocks in callouts and quotes is null in LP and the section of the callout/quote in reading mode, so there is no way for me to get the code block meta string.