Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mermaid not found #14

Closed
olafklingt opened this issue Oct 3, 2017 · 7 comments
Closed

mermaid not found #14

olafklingt opened this issue Oct 3, 2017 · 7 comments

Comments

@olafklingt
Copy link

olafklingt commented Oct 3, 2017

I guess this issue is more like that i didn't install something properly but i don't know what i have to install. after this command:
pandoc -t html -F mermaid-filter -o output.html test.md

The error message is the following:

External tool not found: mermaid
pandoc: Error running filter mermaid-filter

i tried to install mermaid from npm:

npm install -g mermaid

but it does not change my situation.

I am on os x 10.10.4
many thanks
olaf

@raghur
Copy link
Owner

raghur commented Oct 4, 2017 via email

@larsw
Copy link

larsw commented Oct 8, 2017

Related; which mermaid version is this package supposed to work with? The original mermaid CLI is deprecated in favor of the mermaid.cli package, which installs mmdc/mmdc.cmd, but hasn't the same arguments (as far as I know).

@olafklingt
Copy link
Author

sorry for the late answer

i am on os x

i tried to exchange the cmd variable within the index.js to

var cmd = externalTool("/usr/local/bin/mmdc") + " -v -e " + phantomjs.path;

but it does not work because the arguments are different but i don't know the meaning of the old arguments so it is difficult to translate further.

for now i use the pandoc-mermaid filter, but that works only works for html

@raghur
Copy link
Owner

raghur commented Oct 9, 2017 via email

@raghur
Copy link
Owner

raghur commented Oct 9, 2017

I've just pushed a commit that should address this. Can you install again and see if it works for you?

@larsw
Copy link

larsw commented Oct 9, 2017

Thanks! That worked out. Just FYI; I submitted a PR for PDF support in mermaid.cli that was merged recently. I'm also currently working on SVG->EMF conversion via Inkscape so that it will be possible to import the diagrams as vector graphic in docx (Word < 2016). Word 2016 supports SVG as far as I know, but our corp hasn't upgraded yet.

@olafklingt
Copy link
Author

perfect thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants