New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getSemanticHTML
outputs HTML with a ql-
class
#4156
Comments
I'm seeing the correct nested |
Okay I got you. I thought it was about lists. This is a bit tricky as there's no standard way to express the indentation of a block in HTML so one would argue that |
For what it's worth, Outlook and Gmail use multiples of |
This also seems to be the case by default with align. It will output the |
When using indentation tools,
getSemanticHTML
produces HTML where indented text hasclass="ql-indent-1"
which requires quill CSS to render correctly. This means, indentation will not be preserved when you export HTML somewhere else.Steps for Reproduction
Expected behavior:
Semantic HTML should contain style that allows rendering without the Quill stylesheet (e.g.
style="padding-left: 3em"
)Actual behavior:
Semantic HTML contains
ql-indent-1
class which is meaningless outside the Quill editor.Platforms:
Include browser, operating system and respective versions
MacOS Sonoma 14.4.1, Firefox 125, Safari 17, Chrome 124
Version:
2.0.0
The text was updated successfully, but these errors were encountered: