Skip to content

Commit

Permalink
Merge pull request #6 from epower/master
Browse files Browse the repository at this point in the history
add a check for local puppeteer config
  • Loading branch information
timofurrer committed Dec 17, 2018
2 parents 5c7ff90 + d1c02a2 commit d5a618d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandoc_mermaid_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def mermaid(key, value, format_, _):
if PUPPETEER_CFG is not None:
cmd.extend(["-p", PUPPETEER_CFG])

if os.path.isfile('.puppeteer.json'):
cmd.extend(["-p", ".puppeteer.json"])

subprocess.check_call(cmd)
sys.stderr.write('Created image ' + dest + '\n')

Expand Down

0 comments on commit d5a618d

Please sign in to comment.