From 677356a2a00a2cb3b10e458c8586a2ea8bd562a4 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Wed, 30 Nov 2022 13:00:47 +0000 Subject: [PATCH] Use backtick not `` for attr default values GitHub Pages doesn't recognise blocks, so renders these attributes with smart-quotes, which means you can't copy-paste them into a starlark file. --- stardoc/templates/markdown_tables/func.vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stardoc/templates/markdown_tables/func.vm b/stardoc/templates/markdown_tables/func.vm index 5275d088..e0d2496a 100644 --- a/stardoc/templates/markdown_tables/func.vm +++ b/stardoc/templates/markdown_tables/func.vm @@ -15,7 +15,7 @@ ${util.htmlEscape($funcInfo.docString)} | Name | Description | Default Value | | :------------- | :------------- | :------------- | #foreach ($param in $funcInfo.getParameterList()) -| $param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else

-

#end | #if(!$param.getDefaultValue().isEmpty()) ${util.htmlEscape($param.getDefaultValue())} #else none #end| +| $param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else

-

#end | #if(!$param.getDefaultValue().isEmpty()) `${util.htmlEscape($param.getDefaultValue())}` #else none #end| #end #end #if (!$funcInfo.getReturn().docString.isEmpty())