From 8e01ccb41dde8a5e6123f5b0746c36f240576047 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 23 Aug 2019 09:23:15 -0700 Subject: RST reader: use title, not admonition-title, for admonition title. This puts RST reader into alignment with docbook reader. --- src/Text/Pandoc/Readers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers/RST.hs') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 105d27088..8875fdebe 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -695,7 +695,7 @@ directive' = do do bod <- parseFromString' parseBlocks $ top ++ "\n\n" ++ body' let lab = case label of "admonition" -> mempty - (l:ls) -> B.divWith ("",["admonition-title"],[]) + (l:ls) -> B.divWith ("",["title"],[]) (B.para (B.str (toUpper l : ls))) [] -> mempty return $ B.divWith (name,label:classes,keyvals) (lab <> bod) -- cgit v1.2.3