aboutsummaryrefslogtreecommitdiff
path: root/test/command/4833.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-13 11:12:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-13 11:17:26 -0700
commit919c50162ccc3d7a347a9427ca23887e54e8a333 (patch)
tree4071943f8bb4548af45072769fabfa1299d47892 /test/command/4833.md
parentc3f17cb0d7d590c828214deda1d58e65da1b3812 (diff)
downloadpandoc-919c50162ccc3d7a347a9427ca23887e54e8a333.tar.gz
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.
Diffstat (limited to 'test/command/4833.md')
-rw-r--r--test/command/4833.md20
1 files changed, 20 insertions, 0 deletions
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
+```