From e16df8d2718d3a2901c6ac0d7f35165755cde89f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Nov 2020 09:33:29 -0800 Subject: DocBook reader: drop period in formalpara title... ...and put it in a div with class `formalpara-title`, so that people can reformat with filters. Closes #6562. Thanks to rdmuller. --- src/Text/Pandoc/Readers/DocBook.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 115ac617c..5ba48e704 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -782,8 +782,8 @@ parseBlock (Elem e) = "para" -> parseMixed para (elContent e) "formalpara" -> do tit <- case filterChild (named "title") e of - Just t -> para . strong . (<> str ".") <$> - getInlines t + Just t -> divWith ("",["formalpara-title"],[]) . + para . strong <$> getInlines t Nothing -> return mempty (tit <>) <$> parseMixed para (elContent e) "simpara" -> parseMixed para (elContent e) -- cgit v1.2.3