Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 7 tasks
Trikzon opened this issue Apr 2, 2024 · 1 comment
Open
3 of 7 tasks
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Trikzon
Copy link

Trikzon commented Apr 2, 2024

  • The Plugin is up to date
  • Obsidian is up to date

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]
> ```python showLineNumbers
> print("Hello World!")
> ```

It renders like
image

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

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version
0.2.4

@Trikzon Trikzon added the bug Something isn't working label Apr 2, 2024
@mProjectsCode
Copy link
Owner

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.

@mProjectsCode mProjectsCode added the wontfix This will not be worked on label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants