diff --git a/tools/gendoc.janet b/tools/gendoc.janet index 48ae879f..279d3bc1 100644 --- a/tools/gendoc.janet +++ b/tools/gendoc.janet @@ -75,6 +75,7 @@ :ref ref :source-map sm :doc docstring} env-entry + html-key (html-escape key) binding-type (cond macro :macro ref (string :var " (" (type (get ref 0)) ")") @@ -82,7 +83,7 @@ source-ref (if-let [[path start end] sm] (string "" path " (" start ":" end ")") "")] - (string "

" (html-escape key) "

\n" + (string "

" html-key "

\n" "" binding-type "\n" "

" (trim-lead (html-escape docstring)) "

\n" source-ref)))