mProjectsCode / mProjectsCode/obsidian-shiki-plugin

Background turns off completely when clicking on </> button to edit a code block in live preview mode.

Open
#85 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

  1. Go to any codeblock in Live Preview
  2. Click on </>
  3. See error

Expected behavior
Shiki background should stay on when actively editing a codeblock.

Screenshots
Attached

Image Image

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.