我有以下标记字符串:
`log-level` (optional)<br>
Sets the minimal log level messages need in order to be printed to stdout.
Allowed values:
- `debug`
- `warning`
- `error` (default)GitHub以及堆栈溢出呈现如下(为视觉区分添加的块引号):
log-level(可选) 设置输出到stdout所需的最小日志级别消息。 允许值:
debugwarningerror (默认)在此处和屏幕截图中可见,Markdown呈现器在最后一段(“允许的值”)和第一个列表项之间添加间隔。
检查生成的HTML显示了原因:
<p><code>log-level</code> (optional)<br>
Sets the minimal log level messages need in order to be printed to stdout.</p>
<p>Allowed values:</p>
<ul>
<li><code>debug</code></li>
<li><code>warning</code></li>
<li><code>error</code> (default)</li>
</ul>文本“允许的值”被放置在自己的<p>标记中,并且在<p>和下面的<ul>之间有一个空白。
是否有办法减少或消除该空间,使其与列表项之间的空格大致匹配?
发布于 2021-11-09 18:51:56
发布于 2020-08-04 15:35:21
这可能不是你想要的,但我不知道怎么做你想要的。解决这一问题的一个可能方法是通过向子项目中添加等量的空格,使列表成为子列表。见下文:
`log-level` (optional)<br>
Sets the minimal log level messages need in order to be printed to stdout.
- Allowed values:
- `debug`
- `warning`
- `error` (default)
log-level(可选) 设置输出到stdout所需的最小日志级别消息。
debugwarningerror (默认)https://stackoverflow.com/questions/63249703
复制相似问题