Comments (7)
what version of pandoc are you on?
from mermaid-filter.
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.
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.
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.
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.
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.
User error. I had not updated pandoc.
from mermaid-filter.
Related Issues (20)
- list of options? HOT 1
- can we place nodes relative to each other? HOT 1
- Publishing a new NPM release HOT 1
- Please upgrade to mermaid-cli v9 HOT 4
- Allow embedding `svg` directly into the HTML document HOT 1
- DeprecationWarning: Buffer() is deprecated
- Google slides fail to show mermaid images embeded on pptx using mermaid-filter HOT 1
- Need to install librsvg on Mac to use SVG format HOT 1
- fantastic news, sequenceDiagram working with Chinese characters too.
- Mermaid Ink Save Path Option
- I am having trouble getting the filter to work HOT 1
- [Feature request/minor bug] Allow mermaid-filter to work with Bun? HOT 1
- internal syntax error HOT 1
- Hidden graph nodes
- After fresh install, it does not work HOT 3
- pandoc-crossref cannot recognize fig id of mermaid HOT 1
- npm WARN deprecated [email protected]: < 21.5.0 is no longer supported HOT 1
- Set meta-data from command-line? HOT 1
- PNG width not working
- fontawesome not working in SVG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-filter.