工具
-
brew cask install atom
Atom 插件
- language-restructuredtext
- (预览首选) rst-preview-pandoc
- (预览备选) rst-preview
设置
rst-preview-pandoc
- 设置 pandoc path , 通过 brew install 的工具,一般都位于 /usr/local/bin
- 采用 rst-preview-pandoc 时,可以忽略 Bugfix 1
- 在设置 pandoc path 后,应当不会出现 Bugfix 2
Bugfix
- rst-preview Live preview not working Atom 1.0.11
~/.atom/packages/rst-preview/lib/rst-preview.coffee
# line 76-77 # grammars = atom.config.get('rst-preview.grammars') ? [] # return unless editor.getGrammar().scopeName in grammars
- Workaround on OSX for pandoc could not be spawned error
~/.atom/init.coffee
process.env.PATH = ["/usr/bin", "/usr/local/bin", ].join(":")