Issues are disabled at tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc
Posted by jpluimers on 2017/11/08
No more issue reporting: tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc
This is a very useful Atom.io package, but it has one big issue: when you close a preview window then re-opening it, the settings are restored to the default -frst -thtml --webtex
ones.
As I’m an Atom.io n00b, I need to dig into this another time.
Notes:
- the defaults are set in https://github.com/tohosokawa/rst-preview-pandoc/blob/rst/lib/main.coffee#L26 as
module.exports
in thepath pandocOpts.default
. - the settings are used in https://github.com/tohosokawa/rst-preview-pandoc/blob/rst/lib/renderer.coffee#L42 as
opts_ = atom.config.get 'rst-preview-pandoc.pandocOpts'
.
I want the defaults to include --standalone --toc --toc-depth=5
or at least --standalone --toc
.
For now I’ve hardcoded them.
–jeroen
Leave a Reply