From 6c171eace49b3a78e7b6edd679f54a1ad16f15f0 Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 4 Aug 2025 23:25:01 +0200 Subject: builtins: add fmt --- docs/gen/layout.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3