mProjectsCode / mProjectsCode/obsidian-shiki-plugin
Incompatibility with the Level Heading Indent plugin
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 238
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Looks like the Shiki plugin goes in conflict with the Heading Level Indent plugin.
Only in reading mode (live preview mode is fine), the Shiki plugin strips the style="padding-left: ##px;" added by the Heading Level Indent plugin to code blocks (class="el-pre").
Describe the solution you'd like
Shiki plugin to not strip additional CSS applied to code blocks.
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
Reproduce the conflict in Obsidian reading mode with the Shiki and Heading Level Indent plugins enabled; live preview is reported to work. Trace the code-block rendering path and verify that the inline padding style remains present after highlighting, while preserving the existing reading-mode behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100