aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gen/md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gen/md')
-rwxr-xr-xdocs/gen/md9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/gen/md b/docs/gen/md
index f22268c..d07ab5f 100755
--- a/docs/gen/md
+++ b/docs/gen/md
@@ -1,6 +1,5 @@
#!/usr/bin/env moon
-import layout, subnav, autoref from require 'docs.gen.layout'
-import compile from require 'discount'
+import compile, layout, subnav, autoref from require 'docs.gen.layout'
export OUT, ESCAPE
@@ -18,8 +17,8 @@ ESCAPE = (str) ->
(str\gsub '([*`])', '\\%1')
{ OUT, file } = arg
-content = compile (autoref slurp file), 'githubtags', 'fencedcode'
+content = compile autoref slurp file
if #arg > 2
sub = subnav [a for a in *arg[3,]]
- content.body = table.concat { sub, content.body }, '\n\n'
-spit OUT, layout content
+ content = table.concat { sub, content }, '\n\n'
+spit OUT, layout body: content