git.iko.soy/typeable/pandoc
on master help sign in
Remove admonition-title remnants.

Completes 8e01ccb41dde8a5e6123f5b0746c36f240576047

commit5a85789185eac1e9753c1090c89e065f28be2392 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 19 Sep 2019, 16:09 (7 years ago) parentbe30b01
2 files changed+2−2
src/Text/Pandoc/Writers/RST.hs+1−1 test/command/4833.md+1−1
src/Text/Pandoc/Writers/RST.hs+1−1
@@ -190,7 +190,7 @@ blockToRST :: PandocMonad m
190190 => Block -- ^ Block element
191191 -> RST m (Doc Text)
192192blockToRST Null = return empty
193−blockToRST (Div ("",["admonition-title"],[]) _) = return empty
193+blockToRST (Div ("",["title"],[]) _) = return empty
194194 -- this is generated by the rst reader and can safely be
195195 -- omitted when we're generating rst
196196blockToRST (Div (ident,classes,_kvs) bs) = do
test/command/4833.md+1−1
@@ -1,7 +1,7 @@
11```
22pandoc -f native -t rst
33[Div ("",["warning"],[])
4− [Div ("",["admonition-title"],[])
4+ [Div ("",["title"],[])
55 [Para [Str "Warning"]]
66 ,Para [Str "Hi"]]]
77^D