We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const htmlnano = require("htmlnano"); const str =` <!DOCTYPE html> <svg xmlns="http://www.w3.org/2000/svg" width=256 height=256> <foreignObject width=256 height=256> <input/> </foreignObject> </svg> nano.process(str).then(x => console.log(x.html))
Yields:
Promise { <pending> } > (node:55753) UnhandledPromiseRejectionWarning: Error in parsing SVG: Unexpected close tag Line: 0 Column: 131 Char: >
The text was updated successfully, but these errors were encountered:
The Error is likely thrown by svgo. However, the issue seems to be related with #124.
I will implement a fix for it.
Sorry, something went wrong.
fix(posthtml#129): minify svg correctly
8e28a3e
Fix: minify svg correctly (posthtml#129)
b279d46
Merge pull request #130 from SukkaW/fix-129
41b4e3f
Fix: minify svg correctly (#129)
Successfully merging a pull request may close this issue.
Yields:
The text was updated successfully, but these errors were encountered: