lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

The table fo contents is not included in the preview #36

Open keul opened 8 years ago

keul commented 8 years ago

If the .rst file contains the standad .. contents:: directive, the TOC is not shipped inside the preview. I'm not a pandoc expert, but seems this is possibile by adding the --toc parameter on invocation:

pandoc -s --toc README.rst -o README.html

Can this be fixed someway in the preview plugin?