Skip to content

Commit

Permalink
Merge pull request #5 from rexdf/master
Browse files Browse the repository at this point in the history
support pandoc path
  • Loading branch information
yyjhao committed May 29, 2015
2 parents 9c31ba0 + 921960b commit 71e0c62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions sublime-text-markmon.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//If markmon is not on your path you'll need to use a full path to it
"executable": "markmon",
"port": 3002,
"pandoc_path": "",
"command": "pandoc -t HTML5 --mathjax",
"stylesheet": null,
"projectdir": null
Expand Down
5 changes: 5 additions & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ def create_environment():
if paths:
env['PATH'] = os.pathsep.join(paths) + os.pathsep + env['PATH']

pandoc = sublime.load_settings(
'sublime-text-markmon.sublime-settings').get("pandoc_path", None)
if pandoc:
env['PATH'] = pandoc + os.pathsep + env['PATH']

# Many linters use stdin, and we convert text to utf-8
# before sending to stdin, so we have to make sure stdin
# in the target executable is looking for utf-8.
Expand Down

0 comments on commit 71e0c62

Please sign in to comment.