pandoc/test/command/4715.md
John MacFarlane 08fef6b210 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.
2018-10-07 11:44:11 -07:00

434 B

% 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"]]]