DocBook reader: Better treatment of formalpara.
We now emit the title (if present) as a separate paragraph with boldface text. Closes #1215.
This commit is contained in:
parent
8c014967c6
commit
ee2e769cd7
1 changed files with 3 additions and 3 deletions
|
@ -639,10 +639,10 @@ parseBlock (Elem e) =
|
|||
"para" -> parseMixed para (elContent e)
|
||||
"formalpara" -> do
|
||||
tit <- case filterChild (named "title") e of
|
||||
Just t -> (<> str "." <> linebreak) <$> emph
|
||||
<$> getInlines t
|
||||
Just t -> (para . strong . (<> str ".")) <$>
|
||||
getInlines t
|
||||
Nothing -> return mempty
|
||||
addToStart tit <$> parseMixed para (elContent e)
|
||||
(tit <>) <$> parseMixed para (elContent e)
|
||||
"simpara" -> parseMixed para (elContent e)
|
||||
"ackno" -> parseMixed para (elContent e)
|
||||
"epigraph" -> parseBlockquote
|
||||
|
|
Loading…
Reference in a new issue