#** This template is used for including rule definitions as top-level sections in generated stardoc docstrings. *# #* Workaround for markdownCellFormat() not allowing HTML (specifically lists) to be rendered in attribute table cells. TODO: Once https://github.com/bazelbuild/bazel/pull/14230 is merged, remove this macro and replace with call to util.markdownCellFormatWithHtml($attribute.docString, true) *# #macro( markdownCellFormatNoEscapeHtml $docString )#* *##if ($docString.contains("
${util.ruleSummary($ruleName, $ruleInfo)}
${ruleInfo.docString}
#[[###]]# **Attributes**
#if (!$ruleInfo.getAttributeList().isEmpty())
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
#foreach ($attribute in $ruleInfo.getAttributeList())
| $attribute.name | #if(!$attribute.docString.isEmpty()) #markdownCellFormatNoEscapeHtml( $attribute.docString ) #else - #end | ${util.attributeTypeString($attribute)} | ${util.mandatoryString($attribute)} | $attribute.defaultValue |
#end
#end