-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HTML Reader: Drops any tags inside <pre><code> #5333
Comments
I self-solved it: use HTML entities.
|
My goal is to manipulate an AST of But I misunderstood above. I cannot use it in a filter directly because the outputs below are escaped HTML strings.
In this case I need to write an another filter to unescape HTML entities. I reopen this issue because it is not solved. |
Please see this paragraph from the beginning of the manual:
Pandoc's internal representation of a code block is just a big literal string, so no formatting is allowed. Yes, the conversion is lossy in this case. That is to be expected, as noted above. |
See #221 |
pandoc -f html
(HTML Reader) drops any tags inside<pre><code>
.I want that it keeps tags inside
<pre><code>
. How do I fix it?Version
Example: Current (v2.6)
Example: Expected
Reference: Code in jgm/pandoc
tagToString
inpCodeBlock
at src/Text/Pandoc/Readers/HTML.hs of jgm/pandoc might cause it.I think:
The text was updated successfully, but these errors were encountered: