git.iko.soy/typeable/pandoc
on master help sign in
Remove admonition-title remnants.
5a85789John MacFarlane
src/Text/Pandoc/Writers/RST.hs+1−1
@@ -190,7 +190,7 @@ blockToRST :: PandocMonad m
190 => Block -- ^ Block element
190 => Block -- ^ Block element
191 -> RST m (Doc Text)
191 -> RST m (Doc Text)
192blockToRST Null = return empty
192blockToRST Null = return empty
193−blockToRST (Div ("",["admonition-title"],[]) _) = return empty
193+blockToRST (Div ("",["title"],[]) _) = return empty
194 -- this is generated by the rst reader and can safely be
194 -- this is generated by the rst reader and can safely be
195 -- omitted when we're generating rst
195 -- omitted when we're generating rst
196blockToRST (Div (ident,classes,_kvs) bs) = do
196blockToRST (Div (ident,classes,_kvs) bs) = do
test/command/4833.md+1−1
@@ -1,7 +1,7 @@
1```
1```
2pandoc -f native -t rst
2pandoc -f native -t rst
3[Div ("",["warning"],[])
3[Div ("",["warning"],[])
4− [Div ("",["admonition-title"],[])
4+ [Div ("",["title"],[])
5 [Para [Str "Warning"]]
5 [Para [Str "Warning"]]
6 ,Para [Str "Hi"]]]
6 ,Para [Str "Hi"]]]
7^D
7^D