git.iko.soy/typeable/pandoc
on master help sign in
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

commitc8ab8bccf25ad01b9a98b2e59c84c151c5b0c371 authorJan Tojnar <jtojnar@gmail.com> dateSat 5 Jun 2021, 14:26 (5 years ago) parentaf9de92
1 file changed+2−1
src/Text/Pandoc/Readers/DocBook.hs+2−1
src/Text/Pandoc/Readers/DocBook.hs+2−1
@@ -134,6 +134,7 @@ List of all DocBook tags, with [x] indicating implemented,
134134[ ] corpcredit - A corporation or organization credited in a document
135135[ ] corpname - The name of a corporation
136136[ ] country - The name of a country
137+[x] danger - An admonition set off from the text indicating hazardous situation
137138[ ] database - The name of a database, or part of a database
138139[x] date - The date of publication or revision of a document
139140[ ] dedication - A wrapper for the dedication section of a book
@@ -718,7 +719,7 @@ blockTags =
718719 ] ++ admonitionTags
719720
720721admonitionTags :: [Text]
721−admonitionTags = ["important","caution","note","tip","warning"]
722+admonitionTags = ["caution","danger","important","note","tip","warning"]
722723
723724-- Trim leading and trailing newline characters
724725trimNl :: Text -> Text