aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-06-05 14:26:55 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2021-06-05 08:02:21 -0600
commitc8ab8bccf25ad01b9a98b2e59c84c151c5b0c371 (patch)
tree3cef5efc2a3a7d86b07830d0e0e4b1e744aa5554 /src
parentaf9de925de4a441f4c45a977363f9a56589f57bc (diff)
downloadpandoc-c8ab8bccf25ad01b9a98b2e59c84c151c5b0c371.tar.gz
DocBook reader: Add support for danger element
Added in DocBook 5.2: - https://github.com/docbook/docbook/pull/64 - https://tdg.docbook.org/tdg/5.2/danger.html
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index b01ad3252..6ac1c99f9 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -134,6 +134,7 @@ List of all DocBook tags, with [x] indicating implemented,
[ ] corpcredit - A corporation or organization credited in a document
[ ] corpname - The name of a corporation
[ ] country - The name of a country
+[x] danger - An admonition set off from the text indicating hazardous situation
[ ] database - The name of a database, or part of a database
[x] date - The date of publication or revision of a document
[ ] dedication - A wrapper for the dedication section of a book
@@ -718,7 +719,7 @@ blockTags =
] ++ admonitionTags
admonitionTags :: [Text]
-admonitionTags = ["important","caution","note","tip","warning"]
+admonitionTags = ["caution","danger","important","note","tip","warning"]
-- Trim leading and trailing newline characters
trimNl :: Text -> Text