about summary refs log tree commit diff
path: root/users/tazjin/renderMarkdown.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/renderMarkdown.nix')
-rw-r--r--users/tazjin/renderMarkdown.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/tazjin/renderMarkdown.nix b/users/tazjin/renderMarkdown.nix
new file mode 100644
index 000000000000..58f29c30e0f3
--- /dev/null
+++ b/users/tazjin/renderMarkdown.nix
@@ -0,0 +1,9 @@
+# Render a Markdown file to HTML.
+{ depot, ... }:
+
+with depot.nix.yants;
+
+defun [ path drv ] (file: depot.third_party.runCommandNoCC "${file}.rendered.html" {} ''
+  cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
+'')
+