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
Abstracts are placed outside "info" in DocBook #3602
Comments
Ah, this was a change in DocBook 5. (See https://tdg.docbook.org/tdg/4.5/abstract vs https://tdg.docbook.org/tdg/5.1/abstract) It was allowed as child of article in DocBook 4.5. Since the DocBook 4.5 converter was created first, the DocBook 5 converter inherited this placement. Now that the DocBook 4.5 converter has been pulled out of this repository, we can make this update directly to the DocBook 5 converter without the need for any special logic. |
I'll admit, this change is really unfortunate because it breaks the document traversal that the converter does. There's an assumption in that hierarchy that the abstract is part of the body, not the header. And there's a lot of places the abstract can be defined that we now have to account for. |
The only way I could figure out how to do this is to remove the abstract from the document tree then restore it afterwards. It's not pretty, but it gets the job done. |
In an attempt to generate a DocBook tag, I'm approximating the advice given in the manual (https://asciidoctor.org/docs/user-manual/#user-abstract):
In a DocBook flow, this ends up non-compliant XML:
The DocBook XML is pretty straightforward:
The "abstract" tag falls outside the "info" scope, where it's not allowed.
Thanks (as always) for your hard work on asciidoctor. It's an amazing tool.
The text was updated successfully, but these errors were encountered: