With recent codeblock-lowlight extension integration: https://github.com/steven-tey/novel/pull/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: https://github.com/steven-tey/novel/pull/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.