Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Bug: Canvas not Styling

Open Runehkt opened this issue 11 months ago • 2 comments

Canvas cards when using code blocks does not style correctly

Describe the bug

When creating code blocks in cards while working in canvas mode the code blocks are defaulting to vanilla. Seems it is a cards issue since the style works just fine if you import a file

I don't know

Steps to reproduce

Create a card, make a code block with plugin active, input code, deselect card.

No


Expected behaviour

Style showing up, after card editing is done. even when the code block is deselected.

Current behaviour

Style of code-block returns to vanilla after deselect the coding block. (you stop editing the code inside the code block)

Environment

Debian,Linux

  • Plugin Version: 1.1.7
  • Obsidian Version: 1.5.8
  • Platform: Both
  • OS: Debian
  • Theme: Dark Mode
  • CSS Snippets: Not sure

Ps: I'm new to programming scene in general so i might be missing something obvious, sorry if that is the case.

Screenshots

image image

Additional context

Runehkt avatar Feb 29 '24 16:02 Runehkt