mProjectsCode / mProjectsCode/obsidian-shiki-plugin

showLineNumbers feature does not work for code blocks inside of callouts

Open
#5 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug wontfix
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
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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.