gtg922r / obsidian-numerals

An obsidian plugin which turns a math code block into a full featured calculator
Other
389 stars 7 forks source link

Enhancement Suggestion: Render code while editing in live preview #73

Closed BananenRitter closed 3 months ago

BananenRitter commented 4 months ago

Shows graphically rendered code while editing:

  1. Renders the currently active line...
  2. Renders +n lines above/ below the currently active line... ...in source mode
gtg922r commented 3 months ago

Unfortunately this would be extremely difficult and is outside the scope of this plugin.

Obsidian allows plugins to register to handle the rendering of code blocks - but it only does this on full code blocks, and when the cursor is not inside a code block. To support this feature I think I'd have to tie into renderer itself and do my own processing which is just too much heavily lifting.

If I'm missing something and this is more straightforward than I realize feel free to re-open