Customising getSemanticHTML() output #4278
Unanswered
TheEponymousBob
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a Quill-powered application. But we are sharing content between the new application and an old, non-Quill, application. So storing as deltas isn't really an option, and we need to continue to persist rich text as HTML.
What I'm wondering is whether or not there is a clean way to customize the HTML produced by this method.
As a specific example, I'd like to add a CSS class to the
<pre>
generated inCodeBlockContainer.html()
(orSyntaxCodeBlockContainer.html()
). So one approach might be to inject or override this method with my own logic. Is such a thing possible?I suspect there will be other tweaking coming down the line, so I'd like to have a general solution for this sort of thing rather than a workaround for code-blocks.
Beta Was this translation helpful? Give feedback.
All reactions