-
Notifications
You must be signed in to change notification settings - Fork 8
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
parse and render is not idempotent for bootstrap.min.css #6
Comments
I normalized bootstrap.min.css and converted.css so I could do a diff. The result shows that converted.css is missing everything after this point:
So, essentially, the parser seems to quit (but without reporting an error) when it hits |
Previously arbitrary would only generate a LeafBlock for NestedBlock. Hence documents with NestedBlock were not really being tested at all! With this change we can see the bug reported separately in yesodweb#6.
Okay, I think I've localized this bug:
It's the |
Culprit is probably line 92 in Parse.hs:
|
I'm catching up with the issues you linked but there does seem to be an issue:
With or without the |
I think I have a fix - will push something soon. |
PR #8 should fix the problem discussed most recently above.
which chokes the parser. |
OK, my mistake. The
were invalid CSS, but apparently that's wrong. Will fix. |
E.g. `@font-face`. Closes yesodweb#6.
This issue is no longer urgent for me, as I've decided not to use css-text in pandoc. |
Closing in favor of #8 |
First
Then in GHCI:
Now observe that bootstrap.min.css is 113K, and converted.css is 14K. Looks like a parsing problem. See jgm/pandoc#2224.
The text was updated successfully, but these errors were encountered: