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

Need some help with this please #130

Open
dnc77 opened this issue Jul 8, 2024 · 1 comment
Open

Need some help with this please #130

dnc77 opened this issue Jul 8, 2024 · 1 comment

Comments

@dnc77
Copy link

dnc77 commented Jul 8, 2024

Hi There,

Thank you for providing the mermaid-filter. I think this is an awesome tool. I'm having trouble getting it to work though. I'm a techie but not a node person.

I got it installed and have managed to get a binary mermaid-filter which runs and accepts input. I also passed it through to pandoc as a filter with the -F parameter with no avail. I followed the instructions by Janik von Rotz at:

https://janikvonrotz.ch/2020/11/12/render-pdf-from-markdown-that-is-using-mermaid/
In summary, using the -F parameter to pass a markdown file.

In order to simplify things, I decided to pass to the mermaid-filter program a simple file as follows:

cat doc.mer | mermaid-filter

This reports an error. The document contains a mermaid diagram as follows:

sequenceDiagram
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!
Loading

Seems like mermaid-filter expects JSON but not sure what to give it. I have markdown files with diagrams and am using Ghostwriter and find myself having to use pandoc directly as it seems I'm not sure how to get Ghostwriter to support mermaid!

I am on Kubuntu. Any assistance would be greatly appreciated!

Thanks

Regards!!

Duncan

@dnc77
Copy link
Author

dnc77 commented Jul 9, 2024

Just adding on to this. For the most part, this issue is solved. As per the comment by sunlin, attached below:

#125 (comment)

Basically, pupetteer being deprecated did not allow for the generation of the data and we need to set the environment variable to direct it to another app which can do that (chromium).

Now to get this working on ghostscript!

Thanks Sunlin.

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

1 participant