From 08fef6b210d4eaebf5958c499d7770445a49c51e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 7 Oct 2018 11:43:16 -0700 Subject: 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. --- test/command/4715.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/command/4715.md (limited to 'test') 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"]]] + ``` -- cgit v1.2.3