Giter Club home page Giter Club logo

Comments (7)

raghur avatar raghur commented on July 20, 2024

what version of pandoc are you on?

from mermaid-filter.

manor avatar manor commented on July 20, 2024

pandoc 1.16 -- I think the issue is the addition of link_attributes... Since I am more comfortable with Python I modified the the graphviz filter example to make a mermaid filter, which is funny when you think about the language mix (haskell for pandoc itself, python for the filters and javascript for the mermaidjs :-)

In fact, I bet the difference boils down to this (disregarding the minor language-API differences):

pandoc.Para([pandoc.Image([],[newPath, ""])]);

versus:

Para([Image(['', [], []], [alt], [src, tit])])

from mermaid-filter.

raghur avatar raghur commented on July 20, 2024

That's exactly the issue. However, looks like I also need to fix this upstream on pandoc-filter-node. It's minor and I'll send a PR there.

from mermaid-filter.

raghur avatar raghur commented on July 20, 2024

Upstream PR was merged and I've updated package.json dependency. THings should be good now. If you can, can you do a quick test?

from mermaid-filter.

josephwinston avatar josephwinston commented on July 20, 2024

Same issue here @raghur . Using commit 99a7f7637026161988e86d2a4f51cf578e8cf818 for mermaid-filter. npm install --global [email protected] since using npm install --global phantomjs-prebuilt causes

You had errors in your syntax. Use --help for further information.
mermaid requires phantomjs ^1.9.0 to be installed, found version 2.1.1

fs.js:729
  return binding.rename(pathModule._makeLong(oldPath),
                 ^

from mermaid-filter.

raghur avatar raghur commented on July 20, 2024

Hmm - I'm not able to repro this

here's my setup

raghu@desktop:~/code/mermaid-filter > pandoc --version
pandoc 1.16.0.2
Compiled with texmath 0.8.4.1, highlighting-kate 0.6.1.
...
raghu@desktop:~/code/mermaid-filter > mermaid --version
0.5.5
raghu@desktop:~/code/mermaid-filter > phantomjs --version
1.9.8
raghu@desktop:~/code/mermaid-filter > which mermaid-filter
/usr/bin/mermaid-filter
raghu@desktop:~/code/mermaid-filter > cat /usr/lib/node_modules/mermaid-filter/package.json |grep -i githead
  "gitHead": "99a7f7637026161988e86d2a4f51cf578e8cf818",

from mermaid-filter.

josephwinston avatar josephwinston commented on July 20, 2024

User error. I had not updated pandoc.

from mermaid-filter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.