mProjectsCode / mProjectsCode/obsidian-shiki-plugin

Odd behavior when clicking/tapping on parts of code block

Open
#54 1 comment 2 reactions 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
When in edit or read mode I tap or click on parts of the code block the styling is removed and the text changes to just being black. On dark mode it appears to disappear, but in light mode it is evident that it is just removing the styling and making the text black

To Reproduce
Steps to reproduce the behavior:

  1. Make a code block
  2. Tap on parts of the highlighted code.
  3. See error

Expected behavior
Text should remain highlighted.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot_20250524_120511_Obsidian.jpg

Screenshot_20250524_120518_Obsidian.jpg

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version
0.5

Additional context

I am using the default theme.

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 edit and read mode on Windows or Android with the default theme, tapping highlighted code blocks. Trace the code-block styling and click handling entry points, then verify that selecting or tapping code no longer removes its highlighting in both light and dark modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop, mobile
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.