aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-07 11:43:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-07 11:44:11 -0700
commit08fef6b210d4eaebf5958c499d7770445a49c51e (patch)
treef398c9cc2bd1408362bc97071292cc6c0a249b44 /test/command
parentf66a6704f9d40764242a1e005ed7b6e147df7f55 (diff)
downloadpandoc-08fef6b210d4eaebf5958c499d7770445a49c51e.tar.gz
RST reader: pass through fields in unknown directives as div attributes.
This commit also adds support for `class` and `name` attributes to directives in general. Closes #4715.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/4715.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/4715.md b/test/command/4715.md
new file mode 100644
index 000000000..50873c2b5
--- /dev/null
+++ b/test/command/4715.md
@@ -0,0 +1,16 @@
+```
+% pandoc -f rst -t native
+.. toctree::
+ :name: tree1
+ :class: foo bar
+ :caption: Indice dei contenuti
+ :numbered:
+ :maxdepth: 3
+
+ premessa.rst
+ acquisizione-software.rst
+ riuso-software.rst
+^D
+[Div ("tree1",["toctree","foo","bar"],[("caption","Indice dei contenuti"),("numbered",""),("maxdepth","3")])
+ [Para [Str "premessa.rst",SoftBreak,Str "acquisizione-software.rst",SoftBreak,Str "riuso-software.rst"]]]
+ ```