From 919c50162ccc3d7a347a9427ca23887e54e8a333 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 13 Aug 2018 11:12:16 -0700 Subject: RST writer: render Divs with admonition classes as admonitions. Also omit Div with class "admonition-title". These are generated by the RST reader and should be omitted on round-trip. Closes #4833. --- test/command/4833.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/command/4833.md (limited to 'test/command/4833.md') diff --git a/test/command/4833.md b/test/command/4833.md new file mode 100644 index 000000000..ed6de606b --- /dev/null +++ b/test/command/4833.md @@ -0,0 +1,20 @@ +``` +pandoc -f native -t rst +[Div ("",["warning"],[]) + [Div ("",["admonition-title"],[]) + [Para [Str "Warning"]] + ,Para [Str "Hi"]]] +^D +.. warning:: + + Hi +``` +``` +pandoc -f native -t rst +[Div ("",["unknown"],[]) + [Para [Str "Hi"]]] +^D +.. container:: unknown + + Hi +``` -- cgit v1.2.3