-
Notifications
You must be signed in to change notification settings - Fork 72
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
Raw HTML doesn't work in Markdown #23
Comments
Slowly going through and learning about Using debug tracing, the following
Notably, Next steps, see how models get rendered. |
Rendering of Pandoc AST happens in emanote/src/Heist/Extra/Splices/Pandoc.hs Lines 187 to 190 in e1a8e59
According to blaze-html's docs, the use of emanote/src/Heist/Extra/Splices/Pandoc.hs Line 34 in e1a8e59
|
Tracing line 189 using
So The bug seems to be in |
There seems to be a related SO question from years ago: https://stackoverflow.com/questions/19190125/how-can-i-embed-a-raw-html-string-into-a-text-xmlhtml-node-structure |
How does neuron handle this, anyway? |
The SO question is a good find,
So would this be a fix for this bug? To add emanote/src/Heist/Extra/Splices/Pandoc.hs Lines 187 to 190 in e1a8e59
|
I haven't been able to get that to work without also wrapping it in a
|
That weird HTML thing you observed might be specific to blaze-html, because using |
Bug: add raw HTML to Markdown, and it will render as-is with everything escaped.
Possible culprit:: https://github.com/snapframework/xmlhtml/blob/54463f1691c7b31cc3c4c336a6fe328b1f0ebb95/src/Text/Blaze/Renderer/XmlHtml.hs#L27
This will require a good bit of debugging.
The text was updated successfully, but these errors were encountered: