mProjectsCode / mProjectsCode/obsidian-shiki-plugin
showLineNumbers feature does not work for code blocks inside of callouts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 238
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
- 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
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Markdown example in Obsidian with showLineNumbers enabled, then trace how code blocks inside callouts are rendered. Compare that path with a standalone code block; done means the callout example displays line numbers as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100