Skip to content

Highlighting stops when rumdl (plugin) does format on save on CTRL+S. #81

@o-l-a-v

Description

@o-l-a-v
  • The Plugin is up to date
  • Obsidian is up to date

Describe the bug

Note

I don't know if this is a bug in obsidian-shiki-plugin or Obsidian. It's likely not in obsidian-rumdl?

Just wanted to create an issue with info about it, and hopefully someone can figure out where and why it happens.

I use rumdl for linting and format on save:

When I do changes in a note where CTRL+S triggers rumdl format/fix, and rumdl does changes, this highlighter stops highlighting code.

To Reproduce

  1. Install this plugin and rumdl.
  2. Enable format on save with the rumdl plugin.
  3. Create a note with a code block, and add two-three consecutive lines somewhere outside the code block.
  4. Save file CTRL+S, which triggers rumdl, which will remove consecutive blank lines.
  5. See Shiki highligter stopped highlighting code.

Expected behavior

Highlighting of code should not stop.

Screenshots

20260427-1333-18.2269700.mp4

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version

v0.7.7

Additional context
Add any other context about the problem here.

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