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

I am having trouble getting the filter to work #112

Open
CGIII opened this issue Aug 18, 2023 · 1 comment
Open

I am having trouble getting the filter to work #112

CGIII opened this issue Aug 18, 2023 · 1 comment

Comments

@CGIII
Copy link

CGIII commented Aug 18, 2023

Hello! I admit that I am not very experienced at CLI yet. I cannot seem to get this Pandoc filter to work. It is likely my own ignorance standing in the way! lol

Here are the relevant details:

-Macos

-which mermaid-filter /opt/homebrew/bin/mermaid-filter

-which pandoc /opt/homebrew/bin/pandoc

The full command that I tried and the results:

craig@Craig-MacBook-Pro Assignments % cd "/Users/craigi/Library/Assignments" && pandoc -s --from markdown-yaml_metadata_block mermaid-filter "Taking Theological Courses Online.md" -o "Taking Theological Courses Online.docx" --bibliography "/Users/craig/Library/Pandoc Resources/My Library.bib" --citeproc --csl "/Users/craig/Library/Containers/Pandoc Resources/chicago-fullnote-bibliography.csl" --reference-doc="/Users/craig/Library/Pandoc Resources/Safety custom-reference.docx" pandoc: mermaid-filter: openBinaryFile: does not exist (No such file or directory)

This command worked before to do exactly what I expected it to do. Convert MD to DOCX pulling in citations and styling them correctly. I just want to add a diagram.

Do I need to specifiy where the filter is located to pandoc or am I missing something else?

@aklein24
Copy link

aklein24 commented Oct 28, 2023

I came across your comment randomly and decided to reply.

When I'm using this filter, I've had to use the -F filter? Here's the command I'm using:

pandoc -s -t html -F mermaid-filter.cmd -o output/output.html input/test.md 

I think if you add -F before mermaid-filter it will work.

Regardless, hopefully you already figured this out!

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

2 participants