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

Support "Captioned titles" in asciidoctor-parser-doxia-module #938

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Oct 13, 2024

Still WIP:

  • Added support for Example blocks
  • Added support for captioned titles in tables, listing, figure, and examples.
  • Missing: appendix

Working on examples made me realize the way we traverse the AST won't work.
We did some workaround for lists, making it so sub-blocks are traversed from a dedicated NodeProcessor.
But we can't apply the same for example, because it can contain many other elements.
🤔

I will probably merge basic support for example nodes with a paragraph first and then work on the refactoring in another PR. This is experimental after all. 👉 Done and rebased #944

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Build improvement
  • Other (please describe)

What is the goal of this pull request?

Are there any alternative ways to implement this?

Are there any implications of this pull request? Anything a user must know?

Is it related to an existing issue?

  • Yes
  • No

Fixes #749

# Conflicts:
#	asciidoctor-parser-doxia-module/src/main/java/org/asciidoctor/maven/site/parser/NodesSinker.java
#	asciidoctor-parser-doxia-module/src/main/java/org/asciidoctor/maven/site/parser/processors/ListingNodeProcessor.java
#	asciidoctor-parser-doxia-module/src/main/java/org/asciidoctor/maven/site/parser/processors/TableNodeProcessor.java
@abelsromero abelsromero force-pushed the branch-main/749/add-captioned-titles-support-to-parser-doxia-module branch from 48ec5d4 to 0e47d66 Compare October 20, 2024 09:10
@abelsromero abelsromero force-pushed the branch-main/749/add-captioned-titles-support-to-parser-doxia-module branch from 802a190 to 8459943 Compare October 20, 2024 10:13
@abelsromero abelsromero marked this pull request as ready for review October 20, 2024 12:04
@abelsromero abelsromero force-pushed the branch-main/749/add-captioned-titles-support-to-parser-doxia-module branch from 14dc6f0 to 77b67c9 Compare October 20, 2024 12:08
@abelsromero abelsromero merged commit e870c8c into asciidoctor:main Oct 20, 2024
20 checks passed
@abelsromero abelsromero added this to the 3.1.0 milestone Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support "Captioned titles" in asciidoctor-parser-doxia-module
1 participant