vsch / flexmark-java

CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
BSD 2-Clause "Simplified" License
2.21k stars 260 forks source link

add inline parsing for admonition titles to enable formatting #607

Open protogenes opened 4 months ago

protogenes commented 4 months ago

This change enables inline formatting in admonitions. For this a new AdmonitionTitle node is introduced as the first child of an AdmonitionBlock. I'm not happy about the inlined visitChildren in both renderer and formatter to skip over the title node.

Any hints for improvement?

!!! info "Test *inline* `formatting` for [admonition titles](https://github.com/vsch/flexmark-java/wiki/Extensions#admonition)"
    This change enables inline formatting in admonitions.