Is there a way to get Clean HTML output ? #3984
-
As Question. I want to export the editor content as Clean HTML (preferably without slate / tailwind / katex classes / dependencies) to use it as plain html css somewhere. Is there a way to achieve this already ? @travis @tmilewski @chrishyle |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I am trying to export the Slate content to HTML now like this:
However, the HTML file exported still has tailwind/Katex stylesheets attached which may not be easy to render everywhere (let's say email platforms). I noticed that the image gets resized to its full dimensions when used this HTML file to be rendered in an Email platform like Gmail / Outlook. Can we adjust how the image gets rendered or replace tailwind/Katex styles with basic CSS classes ? |
Beta Was this translation helpful? Give feedback.
maybe you need remove ${tailwindCss} ${prismCss} ${katexCss} and try these three
preserveClassNames stripClassNames stripDataAttributes
options in serializeHtml