1*d4726bddSHONG Yifancommit 677356a2a00a2cb3b10e458c8586a2ea8bd562a4 2*d4726bddSHONG YifanAuthor: Daniel Wagner-Hall <[email protected]> 3*d4726bddSHONG YifanDate: Wed Nov 30 13:00:47 2022 +0000 4*d4726bddSHONG Yifan 5*d4726bddSHONG Yifan Use backtick not `<code>` for attr default values 6*d4726bddSHONG Yifan 7*d4726bddSHONG Yifan GitHub Pages doesn't recognise <code> blocks, so renders these 8*d4726bddSHONG Yifan attributes with smart-quotes, which means you can't copy-paste them into 9*d4726bddSHONG Yifan a starlark file. 10*d4726bddSHONG Yifan 11*d4726bddSHONG Yifandiff --git stardoc/templates/markdown_tables/func.vm stardoc/templates/markdown_tables/func.vm 12*d4726bddSHONG Yifanindex 5275d08..e0d2496 100644 13*d4726bddSHONG Yifan--- stardoc/templates/markdown_tables/func.vm 14*d4726bddSHONG Yifan+++ stardoc/templates/markdown_tables/func.vm 15*d4726bddSHONG Yifan@@ -15,7 +15,7 @@ ${util.htmlEscape($funcInfo.docString)} 16*d4726bddSHONG Yifan | Name | Description | Default Value | 17*d4726bddSHONG Yifan | :------------- | :------------- | :------------- | 18*d4726bddSHONG Yifan #foreach ($param in $funcInfo.getParameterList()) 19*d4726bddSHONG Yifan-| <a id="${funcInfo.functionName}-${param.name}"></a>$param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else <p align="center"> - </p> #end | #if(!$param.getDefaultValue().isEmpty()) <code>${util.htmlEscape($param.getDefaultValue())}</code> #else none #end| 20*d4726bddSHONG Yifan+| <a id="${funcInfo.functionName}-${param.name}"></a>$param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else <p align="center"> - </p> #end | #if(!$param.getDefaultValue().isEmpty()) `${util.htmlEscape($param.getDefaultValue())}` #else none #end| 21*d4726bddSHONG Yifan #end 22*d4726bddSHONG Yifan #end 23*d4726bddSHONG Yifan #if (!$funcInfo.getReturn().docString.isEmpty()) 24