From 5a85789185eac1e9753c1090c89e065f28be2392 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Sep 2019 16:09:38 -0700 Subject: Remove admonition-title remnants. Completes 8e01ccb41dde8a5e6123f5b0746c36f240576047 --- src/Text/Pandoc/Writers/RST.hs | 2 +- test/command/4833.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index 4d332b9e1..0321f5b36 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -190,7 +190,7 @@ blockToRST :: PandocMonad m => Block -- ^ Block element -> RST m (Doc Text) blockToRST Null = return empty -blockToRST (Div ("",["admonition-title"],[]) _) = return empty +blockToRST (Div ("",["title"],[]) _) = return empty -- this is generated by the rst reader and can safely be -- omitted when we're generating rst blockToRST (Div (ident,classes,_kvs) bs) = do diff --git a/test/command/4833.md b/test/command/4833.md index ed6de606b..42001ec74 100644 --- a/test/command/4833.md +++ b/test/command/4833.md @@ -1,7 +1,7 @@ ``` pandoc -f native -t rst [Div ("",["warning"],[]) - [Div ("",["admonition-title"],[]) + [Div ("",["title"],[]) [Para [Str "Warning"]] ,Para [Str "Hi"]]] ^D -- cgit v1.2.3