aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gen/md
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-06-12 13:29:59 +0000
committers-ol <s+removethis@s-ol.nu>2025-06-12 13:35:43 +0000
commita668ad6c7523c010b129d9c21fdf90830bcbf77b (patch)
tree2d06e4c429dc12e6577ee01fe992a7f41d2bab8d /docs/gen/md
parentline comments (diff)
downloadalive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.tar.gz
alive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.zip
use cmark instead of discount for markdown docs
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