Skip to content

Commit

Permalink
maintenance and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
raghur committed Dec 21, 2023
1 parent 90c9138 commit 0c1a968
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 375 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
img/
test.html
test.json
.vscode/
.mermaid*
test-output/
37 changes: 19 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid-filter",
"version": "1.4.6",
"version": "1.4.7",
"description": "Pandoc filter for mermaid",
"main": "index.js",
"scripts": {
Expand All @@ -18,7 +18,7 @@
"mermaid-filter": "index.js"
},
"dependencies": {
"@mermaid-js/mermaid-cli": "~9",
"@mermaid-js/mermaid-cli": "^10",
"imgur": "^0.3.1",
"lodash": "^4.17.13",
"minimist": ">=0.2.1",
Expand Down
7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash
TEST_OUT=test-output
mkdir -p $TEST_OUT
pandoc -t json test.md > $TEST_OUT/test.json
cat $TEST_OUT/test.json | node index.js > $TEST_OUT/transformed.json
pandoc -f json $TEST_OUT/transformed.json -t html > $TEST_OUT/transformed.html
xdg-open $TEST_OUT/transformed.html
Loading

0 comments on commit 0c1a968

Please sign in to comment.