aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-03-19 08:09:54 -0700
committerJohn MacFarlane <[email protected]>2024-03-19 08:09:54 -0700
commitebcae86cf47e3037ccc3c7146cf610e5a7af3b03 (patch)
tree67899c5b6a96930840cbd8ad2b20af053569c60c /test
parent27ee5a76967c2b9c418ecd4fe944fe4ad3890a17 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/command/9569.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command/9569.md b/test/command/9569.md
new file mode 100644
index 000000000..edbe2e33d
--- /dev/null
+++ b/test/command/9569.md
@@ -0,0 +1,19 @@
+```
+% 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
+```