aboutsummaryrefslogtreecommitdiff
path: root/doc/filters.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/filters.md')
-rw-r--r--doc/filters.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/doc/filters.md b/doc/filters.md
index 8b6002467..004a83b7d 100644
--- a/doc/filters.md
+++ b/doc/filters.md
@@ -253,12 +253,15 @@ repository](https://github.com/jgm/pandocfilters).
For a more Pythonic alternative to pandocfilters, see
the [panflute](https://pypi.org/project/panflute) library.
-Don't like Python? There are also ports of pandocfilters in
-[PHP](https://github.com/vinai/pandocfilters-php),
-[perl](https://metacpan.org/pod/Pandoc::Filter),
-[javascript/node.js](https://github.com/mvhenderson/pandoc-filter-node),
-[Groovy](https://github.com/dfrommi/groovy-pandoc), and
-[Ruby](https://heerdebeer.org/Software/markdown/paru/).
+Don't like Python? There are also ports of pandocfilters in
+
+- [PHP](https://github.com/vinai/pandocfilters-php),
+- [perl](https://metacpan.org/pod/Pandoc::Filter),
+- TypeScript/JavaScript via Node.js
+ - [pandoc-filter](https://github.com/mvhenderson/pandoc-filter-node),
+ - [node-pandoc-filter](https://github.com/mu-io/node-pandoc-filter),
+- [Groovy](https://github.com/dfrommi/groovy-pandoc), and
+- [Ruby](https://heerdebeer.org/Software/markdown/paru/).
Starting with pandoc 2.0, pandoc includes built-in support for
writing filters in lua. The lua interpreter is built in to
@@ -391,6 +394,8 @@ automatically assign it `Just` the target format or `Nothing`.
We compile our script:
+ # first, make sure pandoc-types is installed:
+ cabal install --lib pandoc-types --package-env .
ghc --make handleRuby
Then run it:
@@ -500,7 +505,8 @@ extension.
---------------- --------------
.py `python`
.hs `runhaskell`
- .pl `ruby`
+ .pl `perl`
+ .rb `ruby`
.php `php`
.js `node`
.r `Rscript`