Github Markdown不会结束列表 [英] Github markdown won't end a list
问题描述
在github中写一个自述文件时,我遇到了一个问题,如果我想在列表后添加一段文本,则会将其解释为列表中的更多内容:
Writing a readme in github I run into the problem that if I want a paragraph of text after a list it interprets it as just more of the list:
* List item
More text
显示为:
-
列表项
List item
更多文字
我尝试查看其他一些github仓库,但我无法说出它们为什么起作用而我的却不起作用.
I tried looking at a few other github repos but I can't tell why theirs are working and mine isn't.
推荐答案
在堆栈交换帖子和GitHub markdown中,您可以使用HTML标签强制列表的结尾:
In stack exchange posts and GitHub markdown you can use an HTML tag to force the end of a list:
- one
- two
- three
<a/>
not a list item
产生:
- 一个
- 两个
- 三个
不是列表项
或者在GitHub上,您可以使用降价注释:
Or on GitHub you can use a markdown comment:
- one
- two
- three
[//]: # (Hello)
not a list item
显示GitHub标记的要点: https://gist.github.com/schlueter/ee90c7097f633ac90d3a9da56e6a69e1 a>
A gist showing GitHub markdown: https://gist.github.com/schlueter/ee90c7097f633ac90d3a9da56e6a69e1
这篇关于Github Markdown不会结束列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!