obsidian-shiki-plugin icon indicating copy to clipboard operation
obsidian-shiki-plugin copied to clipboard

It doesn't work in source mode

Open dy-sh opened this issue 6 months ago • 2 comments

  • [ x ] The Plugin is up to date
  • [ x ] Obsidian is up to date

Describe the bug It works fine if Default Edit Mode option is set to Live Preview. But if Source Mode is selected, the plugin doesn't work in edit mode. If I click Reload Highlighter, it starts working. So, the idea is to add some logic to automatically click this button as soon as the plugin is loaded. You may need a delay if obsidian or other plugins override theme settings.

To Reproduce Select Source Mode in Editor > Default Edit Mode and restart Obsidian.

Occurs on

  • [ x ] Windows
  • [ x ] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS

Plugin version 0.5.0

UPD: Reload Highlighter button fixes the highlighting only if obsidian is in edit mode. So just reloading the plugin when it loads will not help. You need to do it when the editor goes into edit mode, or look for another solution.

dy-sh avatar Jun 12 '25 14:06 dy-sh

same issue here

rudironsoni avatar Aug 09 '25 12:08 rudironsoni

I can't seem to reproduce this on my linux install.

mProjectsCode avatar Aug 26 '25 21:08 mProjectsCode