mProjectsCode / mProjectsCode/obsidian-shiki-plugin
Background turns off completely when clicking on </> button to edit a code block in live preview mode.
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
Background turns off completely when clicking on </> button to edit a code block in live preview mode. Line numbers also disappear. The syntax highlighting remains, but become unreadable against the regular code block background. Background and line numbers return once clicked outside the block. Because of this I am not able to write code at all with Shiki enabled.
To Reproduce
Steps to reproduce the behavior:
- Go to any codeblock in Live Preview
- Click on </>
- See error
Expected behavior
Shiki background should stay on when actively editing a codeblock.
Screenshots
Attached
Occurs on
- Android
Plugin version
0.7.7
Additional context
Using a Lenovo Tab 10 3rd gen Android 13
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 issue in an Obsidian code block using Live Preview on Android with plugin version 0.7.7, then trace the transition after clicking the </> edit button. Compare the editing state with the normal rendered state; done when the Shiki background and line numbers remain visible while editing.
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
- 50/100