aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/angle_bracket_test/golden.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/angle_bracket_test/golden.md')
-rwxr-xr-x[-rw-r--r--]test/testdata/angle_bracket_test/golden.md56
1 files changed, 17 insertions, 39 deletions
diff --git a/test/testdata/angle_bracket_test/golden.md b/test/testdata/angle_bracket_test/golden.md
index 06496b2..1c31dd2 100644..100755
--- a/test/testdata/angle_bracket_test/golden.md
+++ b/test/testdata/angle_bracket_test/golden.md
@@ -1,26 +1,19 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
-Input file to test angle bracket bug (https://github.com/bazelbuild/skydoc/issues/186)
+Input file to test &lt;angle bracket bugs&gt;
-See https://github.com/bazelbuild/skydoc/issues/186,
-https://github.com/bazelbuild/stardoc/issues/132,
-and https://github.com/bazelbuild/stardoc/issues/137.
-
-<b>HTML formatting</b> can be used in docstrings, just as in regular Markdown.
-Literal angle brackets can be obtained by escaping them with a backslash, where
-the backslash itself must be escaped for use in a Starlark docstring
-(`\\<` becomes \<), or by using HTML entities (`&lt;` becomes &lt;).
-Angle brackets are also preserved in inline code blocks (`#include <vector>`).
+See https://github.com/bazelbuild/skydoc/issues/186
+and https://github.com/bazelbuild/stardoc/issues/132
<a id="my_anglebrac"></a>
## my_anglebrac
<pre>
-my_anglebrac(<a href="#my_anglebrac-name">name</a>, <a href="#my_anglebrac-also_useless">also_useless</a>, <a href="#my_anglebrac-useless">useless</a>)
+my_anglebrac(<a href="#my_anglebrac-name">name</a>, <a href="#my_anglebrac-useless">useless</a>)
</pre>
-Rule with \<brackets>
+Rule with &lt;brackets&gt;
**ATTRIBUTES**
@@ -28,8 +21,7 @@ Rule with \<brackets>
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| <a id="my_anglebrac-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
-| <a id="my_anglebrac-also_useless"></a>also_useless | Args with some formatted tags: `<tag>` and <pre><code class="language-xml">&lt;tag2&gt;x&lt;/tag2&gt;</code></pre> | String | optional | `"1<<5"` |
-| <a id="my_anglebrac-useless"></a>useless | Args with some tags: \<tag1>, \<tag2> | String | optional | `"Find \\<brackets>"` |
+| <a id="my_anglebrac-useless"></a>useless | Args with some tags: &lt;tag1&gt;, &lt;tag2&gt; | String | optional | <code>"Find &lt;brackets&gt;"</code> |
<a id="bracketuse"></a>
@@ -40,14 +32,14 @@ Rule with \<brackets>
bracketuse(<a href="#bracketuse-foo">foo</a>, <a href="#bracketuse-bar">bar</a>, <a href="#bracketuse-baz">baz</a>)
</pre>
-Information with \<brackets>
+Information with &lt;brackets&gt;
**FIELDS**
| Name | Description |
| :------------- | :------------- |
-| <a id="bracketuse-foo"></a>foo | A string representing \<foo> |
+| <a id="bracketuse-foo"></a>foo | A string representing &lt;foo&gt; |
| <a id="bracketuse-bar"></a>bar | A string representing bar |
| <a id="bracketuse-baz"></a>baz | A string representing baz |
@@ -57,19 +49,12 @@ Information with \<brackets>
## bracket_function
<pre>
-bracket_function(<a href="#bracket_function-param">param</a>, <a href="#bracket_function-md_string">md_string</a>)
+bracket_function(<a href="#bracket_function-param">param</a>)
</pre>
-Dummy docstring with \<brackets>.
-
-This rule runs checks on `<angle brackets>`.
+Dummy docstring with &lt;brackets&gt;.
-Sometimes, we have such things on their own, but they may
-also appear in code blocks, like
-
-```starlark
-foo = "<thing>"
-```
+This rule runs checks on &lt;angle brackets&gt;.
**PARAMETERS**
@@ -77,16 +62,15 @@ foo = "<thing>"
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
-| <a id="bracket_function-param"></a>param | an arg with **formatted** docstring, `<default>` by default. | `"<default>"` |
-| <a id="bracket_function-md_string"></a>md_string | A markdown string. | ``"foo `1<<10` bar"`` |
+| <a id="bracket_function-param"></a>param | an arg with **formatted** docstring, &lt;default&gt; by default. | <code>"&lt;default&gt;"</code> |
**RETURNS**
-some \<angled> brackets
+some &lt;angled&gt; brackets
**DEPRECATED**
-deprecated for \<reasons> as well as `<reasons>`.
+deprecated for &lt;reasons&gt;
<a id="bracket_aspect"></a>
@@ -97,13 +81,7 @@ deprecated for \<reasons> as well as `<reasons>`.
bracket_aspect(<a href="#bracket_aspect-name">name</a>, <a href="#bracket_aspect-brackets">brackets</a>)
</pre>
-Aspect.
-
-Sometimes, we want a code block like
-```starlark
-foo = "<brackets>"
-```
-which includes angle brackets.
+Aspect with &lt;brackets&gt;
**ASPECT ATTRIBUTES**
@@ -118,7 +96,7 @@ which includes angle brackets.
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
-| <a id="bracket_aspect-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
-| <a id="bracket_aspect-brackets"></a>brackets | Attribute with \<brackets> | String | optional | `"<default>"` |
+| <a id="bracket_aspect-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
+| <a id="bracket_aspect-brackets"></a>brackets | Attribute with &lt;brackets&gt; | String | optional | <code>"&lt;default&gt;"</code> |