ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
443 stars 90 forks source link

Subtitles are not working as expected #699

Open benlandg opened 1 month ago

benlandg commented 1 month ago

Hi, I am using asciidoctor-web-pdf-win-v1.0.0-alpha.16

When publishing a pdf I can't get subititle partitioning working e.g. = Main title: Subtitle. Both main title and subtitle seem to be on the same line and "level". On the same file the subtitle partitioning works for me using regular asciidoctor

ggrossetie commented 2 weeks ago

Are you referring to the default built-in converter? If so, we can take inspiration from the semantic converter in Asciidoctor:

https://github.com/asciidoctor/asciidoctor/blob/cc337727cfb1479cb2d684f3de5aa38e4ab29ec5/lib/asciidoctor/converter/semantic_html5.rb#L247-L253

And update the built-in converter: https://github.com/ggrossetie/asciidoctor-web-pdf/blob/3fe542a6de26a1862869fbca0178ec18a80ac42d/lib/document/document-converter.js#L495