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
This commit is contained in:
Jan Tojnar 2021-06-05 14:26:55 +02:00 committed by John MacFarlane
parent af9de925de
commit c8ab8bccf2

View file

@ -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