diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-08-04 21:25:01 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-08-04 21:35:25 +0000 |
| commit | 6c171eace49b3a78e7b6edd679f54a1ad16f15f0 (patch) | |
| tree | 4c22f6ba83180e90f7b40d89acd7f528b235df56 /docs/gen | |
| parent | fix repeated chars in symbol regex in docs and code (diff) | |
| download | alive-6c171eace49b3a78e7b6edd679f54a1ad16f15f0.tar.gz alive-6c171eace49b3a78e7b6edd679f54a1ad16f15f0.zip | |
builtins: add fmt
Diffstat (limited to 'docs/gen')
| -rw-r--r-- | docs/gen/layout.moon | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/gen/layout.moon b/docs/gen/layout.moon index 93a7851..f84d4cf 100644 --- a/docs/gen/layout.moon +++ b/docs/gen/layout.moon @@ -3,6 +3,8 @@ dom = require 'docs.gen.dom' cmark = require 'cmark' import opairs from require 'alv.util' +local autoref + compile = (md) -> doc = cmark.parse_string md, cmark.OPT_DEFAULT cmark.render_html doc, cmark.OPT_DEFAULT + cmark.OPT_UNSAFE @@ -15,7 +17,7 @@ render_meta = (meta) -> examples = p table.concat [code e for e in *meta.examples], ' ' table.insert contents, examples if meta.description - description = compile meta.description\match '^\n*(.+)\n*$' + description = compile autoref meta.description\match '^\n*(.+)\n*$' table.insert contents, description contents |
