aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-19 16:09:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-19 16:09:38 -0700
commit5a85789185eac1e9753c1090c89e065f28be2392 (patch)
tree401f8b3e949a0bf870f0123a975d628aed585f1f
parentbe30b01935772ade301ab8c06b6c87ba1e04f41f (diff)
downloadpandoc-5a85789185eac1e9753c1090c89e065f28be2392.tar.gz
Remove admonition-title remnants.
Completes 8e01ccb41dde8a5e6123f5b0746c36f240576047
-rw-r--r--src/Text/Pandoc/Writers/RST.hs2
-rw-r--r--test/command/4833.md2
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