diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-06-12 13:29:59 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-06-12 13:35:43 +0000 |
| commit | a668ad6c7523c010b129d9c21fdf90830bcbf77b (patch) | |
| tree | 2d06e4c429dc12e6577ee01fe992a7f41d2bab8d /docs/gen/md | |
| parent | line comments (diff) | |
| download | alive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.tar.gz alive-a668ad6c7523c010b129d9c21fdf90830bcbf77b.zip | |
use cmark instead of discount for markdown docs
Diffstat (limited to 'docs/gen/md')
| -rwxr-xr-x | docs/gen/md | 9 |
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 |
