Skip to content

It doesn't work in source mode #55

@dy-sh

Description

@dy-sh
  • [ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions