diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-08-13 11:12:16 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-08-13 11:17:26 -0700 |
commit | 919c50162ccc3d7a347a9427ca23887e54e8a333 (patch) | |
tree | 4071943f8bb4548af45072769fabfa1299d47892 /test/command | |
parent | c3f17cb0d7d590c828214deda1d58e65da1b3812 (diff) | |
download | pandoc-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')
-rw-r--r-- | test/command/4833.md | 20 |
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 +``` |