Skip to content
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

<title> within <orderedlist> from docbook is skipped #10594

Closed
laborg opened this issue Feb 3, 2025 · 4 comments
Closed

<title> within <orderedlist> from docbook is skipped #10594

laborg opened this issue Feb 3, 2025 · 4 comments

Comments

@laborg
Copy link

laborg commented Feb 3, 2025

Thanks for your work on pandoc!

On

~/projects/pandoctryout (main*) » pandoc --version                                                                                                                                                                                                                                                               me@e15
pandoc 3.6.2
Features: +server +lua
....

given the following docbook file

<?xml version="1.0" encoding="UTF-8"?>
<?asciidoc-toc?>
<?asciidoc-numbered?>
<article xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en">
<info>
<title>Pandoc bug</title>
</info>
<section xml:id="_pandoc_bug">
<title>Pandoc bug</title>
<orderedlist numeration="loweralpha">
<title>header inside listing</title>   // not rendered in any output format!
<listitem>
<simpara>first step</simpara>
</listitem>
</orderedlist>
</section>
</article>

the reader apparently skips the <title> element within the <orderedlist> element. .
Example of a pandoc translated markdown (by pandoc -f docbook -t markdown -o pandocbug.md pandocbug.xml):

# Pandoc bug {#_pandoc_bug}

a.  first step

Usecase: asciidoc creates those kind of headers/structure in the docbook output.

@jgm
Copy link
Owner

jgm commented Feb 3, 2025

We could emit a structure with a Div containing a Plain (the title) and the OrderedList in this case. (Similar to our treatment of other elements with title.)

@jgm
Copy link
Owner

jgm commented Feb 3, 2025

Do bullet lists also allow a title element?

@laborg
Copy link
Author

laborg commented Feb 3, 2025

Yes they also allow a title element.

@laborg
Copy link
Author

laborg commented Feb 3, 2025

We could emit a structure with a Div containing a Plain (the title) and the OrderedList in this case. (Similar to our treatment of other elements with title.)

Thats whats actually happening when Asciidoctor translates and Asciidoc into HTML5.

@jgm jgm closed this as completed in f72548a Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants