about summary refs log blame commit diff
path: root/users/tazjin/renderMarkdown.nix
blob: 0994661cbb9c52c781c1fc949dda305a20da3d39 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                 
                     


                     
                                                                           


                                                                                
# Render a Markdown file to HTML.
{ depot, pkgs, ... }:

with depot.nix.yants;

defun [ path drv ] (file: pkgs.runCommandNoCC "${file}.rendered.html" {} ''
  cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
'')