Files
John MacFarlane ebcae86cf4 DocBook reader: add empty title to admonition div if not present.
This allows admonition elements (e.g. `<note>`) to work with
gfm admonitions even if the `<title>` is not present.

Closes #9569.
2024-03-19 08:09:54 -07:00

278 B

% pandoc -f docbook -t gfm
<note>
  <para>Some content</para>
</note>
<para>Spacer.</para>
<note>
  <title>A note with a title. Works, but the title is discarded.</title>
  <para>Some content</para>
</note>
^D
> [!NOTE]
> Some content

Spacer.

> [!NOTE]
> Some content