You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the user is in "Live Preview" mode, and an HTML element contains a templater script, then the entire document after that script will be displayed as if the user is in Source mode. Please see the two contrasting screenshots which showcases this perfectly. Both screenshots were taken in Live Preview mode.
Before pasting a templater script inside the HTML:
After not changing anything, except pasting the templater script:
Expected behavior
Markdown formatting should be displayed correctly when the user is in Obsidian's Live Preview mode, even if there is a templater script inside of an HTML element in the note.
Note that disabling/enabling "Syntax highlighting on desktop" doesn't change anything as far as this issue is concerned.
I discovered this bug while making my Daily Note template, where I tried to use HTML to center an element. However, due to this bug I was forced to instead use convoluted CSS to do it, because not being able to use Live Preview to preview what my daily note will look like is too big of a drawback.
Steps to replicate:
Open up a note in Live Preview, and paste the following into any part of the note's body: <a><% %><>
Observe that the entire note after the code will be displayed as if Source mode is turned on, even though you're in Live Preview.
The text was updated successfully, but these errors were encountered:
Plugin information:
Describe the bug
If the user is in "Live Preview" mode, and an HTML element contains a templater script, then the entire document after that script will be displayed as if the user is in Source mode. Please see the two contrasting screenshots which showcases this perfectly. Both screenshots were taken in Live Preview mode.
Before pasting a templater script inside the HTML:
After not changing anything, except pasting the templater script:
Expected behavior
Markdown formatting should be displayed correctly when the user is in Obsidian's Live Preview mode, even if there is a templater script inside of an HTML element in the note.
Note that disabling/enabling "Syntax highlighting on desktop" doesn't change anything as far as this issue is concerned.
I discovered this bug while making my Daily Note template, where I tried to use HTML to center an element. However, due to this bug I was forced to instead use convoluted CSS to do it, because not being able to use Live Preview to preview what my daily note will look like is too big of a drawback.
Steps to replicate:
<a><% %><>
The text was updated successfully, but these errors were encountered: