diff options
Diffstat (limited to 'docs')
| -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 |
