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
With recent codeblock-lowlight extension integration: #375 it works perfectly in the editor but when I render the editor contents as HTML from (window.localStorage.getItem("html-content")), it changes the code content to plain html text.
Editor:
When HTML rendered from from (window.localStorage.getItem("html-content")):
Link to reproduction
None
To reproduce
Just render the content from (window.localStorage.getItem("html-content")) using dangerouslySetInnerHTML like:
Provide environment information
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
Memory: 4.96 GB / 15.92 GB
Binaries:
Node: 22.1.0 - C:\Program Files\nodejs\node.EXE
npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.0.6 - C:\Program Files\nodejs\pnpm.CMD
Describe the bug
With recent codeblock-lowlight extension integration: #375 it works perfectly in the editor but when I render the editor contents as HTML from (window.localStorage.getItem("html-content")), it changes the code content to plain html text.
Editor:
When HTML rendered from from (window.localStorage.getItem("html-content")):
Link to reproduction
None
To reproduce
Just render the content from (window.localStorage.getItem("html-content")) using dangerouslySetInnerHTML like:
Additional information
I am working on its fix will raise PR soon.
The text was updated successfully, but these errors were encountered: