-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
role attribute in DocBook <phrase> elements not picked up #7195
Comments
Well, you can use a filter to intercept Span elements with the desired class and add |
Thanks a lot for addressing this, and so quickly too! 😄 |
Quite new to Pandoc and to Haskell, so bear with me. I am trying to apply a custom paragraph style for Docbook block elements that have a role attribute. For inline elements such as "phrase", this works: I can intercept the Span and can add the custom style (as soon as I have grokked Lua, that is). For block elements, however, it does not work. The parseMixed function does not care about the Docbook "role" attribute, as far as I can tell without really understanding the Haskell code. Thanks! |
If there is a particular block-level element for which you'd like In any case best to request this in a new issue (with a pointer to this one). |
Thanks @jgm for the quick reply. Actually, my Docbook in turn is the output of AsciiDoctor so I don't have freedom in choosing the elements. In my case, I'm dealing with a simpara element, which is "A paragraph that contains only text and inline markup, no block elements." |
pandoc 2.13 doesn't pick up
role
attributes from<phrase>
elements. Looking atDocBook.hs
line 1076 it appears to my non-Haskell-savvy brain that pandoc wrongly looks for a<phrase class>
instead of the<phrase role>
attribute.Gentle reminder: DocBook generally uses
role
where for example HTML usesclass
.Thank you for this great product, by the way!
The text was updated successfully, but these errors were encountered: