Skip to content
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

minify_html_onepass: <dl></dl> in <p></p> throws SyntaxError: Unexpected closing tag. #188

Open
njzjz opened this issue May 14, 2024 · 0 comments

Comments

@njzjz
Copy link

njzjz commented May 14, 2024

html=r"""<p><dl></dl></p>"""
import minify_html_onepass
minify_html_onepass.minify(html)

throws:

SyntaxError: Unexpected closing tag. [Character 12]

This is not a problem with minify_html.

@njzjz njzjz changed the title <dl></dl> in <p></p> throws SyntaxError: Unexpected closing tag. minify_html_onepass: <dl></dl> in <p></p> throws SyntaxError: Unexpected closing tag. May 14, 2024
njzjz added a commit to njzjz/deepmodeling_sphinx that referenced this issue May 14, 2024
njzjz added a commit to deepmodeling/deepmodeling_sphinx that referenced this issue May 14, 2024
* fix: use minify-html instead of minify-html-onepass

xref: wilsonzlin/minify-html#188

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant