有关允许的 HTML 标记和属性的列表,请参见 HTML :: Pipeline 的[SanitizationFilter](https://github.com/jch/html-pipeline/blob/v2.12.3/lib/html/pipeline/sanitization_filter.rb#L42)类的文档. 除了默认`SanitizationFilter`允许列表,GitLab 允许`span` , `abbr` , `details`和`summary`元素。
```markdown
```
<dl>
<dt>Definition list</dt>
<dd>Is something people use sometimes.</dd>
...
...
@@ -775,7 +775,7 @@ Here's a sample audio clip:
仍然可以在 HTML 标记内使用 Markdown,但前提是包含 Markdown 的行分为各自的行:
```markdown
```
<dl>
<dt>Markdown in HTML</dt>
<dd>Does *not* work **very** well. HTML tags will work, in most cases.</dd>
...
...
@@ -792,7 +792,7 @@ Here's a sample audio clip:
可以使用 HTML 的[`<details>`](https://s0developer0mozilla0org.icopy.site/en-US/docs/Web/HTML/Element/details)和[`<summary>`](https://s0developer0mozilla0org.icopy.site/en-US/docs/Web/HTML/Element/summary)标记折叠内容. 这对于折叠长日志特别有用,因为它们占用更少的屏幕空间。
```markdown
```
<p>
<details>
<summary>Click this to collapse/fold.</summary>
...
...
@@ -810,7 +810,7 @@ These details <em>will</em> remain <strong>hidden</strong> until expanded.
请记住,在`</summary>`标记之后和`</details>`标记之前留空行,如示例所示:
````markdown
````
<details>
<summary>Click this to collapse/fold.</summary>
These details _will_ remain **hidden** until expanded.