aboutsummaryrefslogtreecommitdiff
path: root/utility/katex/wrapper
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-28 19:02:53 +0200
committerAdrian Kummerlaender2018-05-28 19:02:53 +0200
commitbc3f4a79d52e0f62b93628fd8b35516eb6c4f44b (patch)
treefda2a759e58a47f0e6dd7ea40c52c2183a65565a /utility/katex/wrapper
parent8223f1abb07fd5c26c1361b42e9c7527fd718fa5 (diff)
downloadblog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar.gz
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar.bz2
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar.lz
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar.xz
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.tar.zst
blog.kummerlaender.eu-bc3f4a79d52e0f62b93628fd8b35516eb6c4f44b.zip
Add Nix derivation for KaTeX
One step closer to a fully declarative website build environment.
Diffstat (limited to 'utility/katex/wrapper')
-rwxr-xr-xutility/katex/wrapper16
1 files changed, 0 insertions, 16 deletions
diff --git a/utility/katex/wrapper b/utility/katex/wrapper
deleted file mode 100755
index 24a91d1..0000000
--- a/utility/katex/wrapper
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env node
-
-var katex = require("./katex.min.js");
-var input = "";
-
-var args = process.argv.slice(2);
-
-process.stdin.on("data", function(chunk) {
- input += chunk.toString();
-});
-
-process.stdin.on("end", function() {
- var options = { displayMode: args.indexOf("--display-mode") !== -1 };
- var output = katex.renderToString(input, options);
- console.log(output);
-});