mugiwara85 / CodeblockCustomizer

Codeblock Customizer plugin for Obsidian
MIT License
148 stars 7 forks source link

Meta Issue: Reading Mode doesn't re-render on change of codeblock parameters #32

Closed mayurankv closed 10 months ago

mayurankv commented 1 year ago

Currently, changing codeblock parameters (anything following the language name after backticks or a space after backticks) do not cause a re-render for reading mode. This forces the user to close and reopen the note or refresh it to see the updated changes.

Such parameters include which line highlights, code folding, line number offset and file names.

This unfortunately is a limitation of the obsidian parser for changes which does not register changes after the language name in codeblocks as something to refresh for. See this forum post. If this is going to change, then obsidian would have to make that change so please go and like/bump that thread if you want everything to instantly update!