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
DocBook Reader doesn't seem to parse elements within "code" xml #1449
Comments
Pandoc's document model doesn't allow structure in code blocks. But we should at least extract the string content of these inner tags, recursively. |
Why does pandoc not allow markup within code blocks? I believe some of the output formats, such as html, support it. In an idea world wouldn't it be the Writer's job to dump the inner tags that it can't support while preserving their content. (This is similar to the issue with the odt writer dumping markdown that uses the pre html tag without preserving the string content) |
Of course, we can't include structure in the code block, but this way we at least preserve the text. Closes jgm#1449.
+++ bcexelbi [Jul 24 14 01:30 ]:
In an ideal world, perhaps. And adding additional structure to the Pandoc tries to find a happy medium, in its representation of documents, |
elements such as
<screen>
can contain other elements such as<command>
. These inner elements appear to be ignored.All of these elements are calling codeWithLang and that doesn't appear to account for nested tags.
What led me to the above conclusion was that code like this
results in (in this case html, but I've tried odt as well with similar results)
The inner block is gone.
The text was updated successfully, but these errors were encountered: