mProjectsCode / mProjectsCode/obsidian-shiki-plugin

Code block cannot be collapsed in "Live Preview" mode

Open
#59 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
238
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Obsidian built-in code blocks can be collapsed in both "Source Mode" and "Live Preview".

When using this plugin, the blocks can only be collapsed in "Source Mode"
If I try to collapse the block in "Live Preview" it is expanded as soon as I move my cursor out of the code block.

Would it be possible to make the collapse stay until the section is explicitly expanded via mouse click like with obsidian built-in code blocks ?

Great plugin, btw.

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 issue in Obsidian's Live Preview and compare the behavior with Source Mode and built-in code blocks. Done means a collapsed code block remains collapsed after the cursor leaves it and expands only after an explicit mouse click.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.