我的 markdown 文档中的奇怪之处,还有其他人看到了吗?
Oddity in my markdown document, does anyone else see this?
Check out this readme 并向下滚动到有关命令行开关的部分。在我的显示器上,--random
显示在 --goto-next
文本的末尾。我不知道为什么。我查看了源代码,似乎没有任何隐藏字符,据我所知,这些行与上面和下面的行相同。有没有其他人看到这个,或者是浏览器问题?
说明
这是因为除了以 --goto-next
开头的行之外,所有其他行的末尾都有两个空格。虽然一般来说,这也是分隔行的正确方法,但它不太明显并且更容易出现此类错误。
例如,以原始模式打开我的答案,看到我正在换行而不是下面两行。
代码片段
这是一个代码片段:
(highlight the code with your cursor to see the spaces)
This is how you normally start a new line.
After two consecutive line breaks. But you can also achieve a line break with two tailing spaces at the line's end.
更好的做法
通常最好使用项目符号列表或表格,它们的格式会很好并且在原始文本文件中也可见。毕竟,MarkDown 被设计成可读的,无论是在原始模式还是渲染模式下。
编辑:HTML 无项目符号列表
您可以通过在您的文档中插入 HTML+CSS 来获得没有项目符号的列表,如下所示:
Other command-line options include:
<ul style="list-style-type: none;">
<li>
`--help`, `-h`: print usage notes
</li>
<li>
`--version`, `-v`: print version info
</li>
<li>
`--upper-case`, `-u`: force input to upper-case, basically like using caps lock
</li>
<li>
`--array-base`, `-a`: set base index for arrays, normally 1 but some dialects use 0
</li>
<li>
`--tabs`, `-t`: set the number of spaces for comma-separated items, defaults to 10
</li>
<li>
`--goto-next`, `-g`: if a branch targets a non-existant line, should it go to the next line? normally false
</li>
<li>
`--random`, `-r`: seed the random number generator
</li>
<li>
`--output-file`, `-o`: redirect PRINT to the named file
</li>
<li>
`--input-file`, `-i`: redirect INPUT from the named file, one INPUT value per line
</li>
</ul>
Notes:
- It is messy, and really tedious to do this by hand.
- Your styles will get overwritten by GitHub and the bullets will appear again.
Check out this readme 并向下滚动到有关命令行开关的部分。在我的显示器上,--random
显示在 --goto-next
文本的末尾。我不知道为什么。我查看了源代码,似乎没有任何隐藏字符,据我所知,这些行与上面和下面的行相同。有没有其他人看到这个,或者是浏览器问题?
说明
这是因为除了以 --goto-next
开头的行之外,所有其他行的末尾都有两个空格。虽然一般来说,这也是分隔行的正确方法,但它不太明显并且更容易出现此类错误。
例如,以原始模式打开我的答案,看到我正在换行而不是下面两行。
代码片段
这是一个代码片段:
(highlight the code with your cursor to see the spaces)
This is how you normally start a new line.
After two consecutive line breaks. But you can also achieve a line break with two tailing spaces at the line's end.
更好的做法
通常最好使用项目符号列表或表格,它们的格式会很好并且在原始文本文件中也可见。毕竟,MarkDown 被设计成可读的,无论是在原始模式还是渲染模式下。
编辑:HTML 无项目符号列表
您可以通过在您的文档中插入 HTML+CSS 来获得没有项目符号的列表,如下所示:
Other command-line options include:
<ul style="list-style-type: none;">
<li>
`--help`, `-h`: print usage notes
</li>
<li>
`--version`, `-v`: print version info
</li>
<li>
`--upper-case`, `-u`: force input to upper-case, basically like using caps lock
</li>
<li>
`--array-base`, `-a`: set base index for arrays, normally 1 but some dialects use 0
</li>
<li>
`--tabs`, `-t`: set the number of spaces for comma-separated items, defaults to 10
</li>
<li>
`--goto-next`, `-g`: if a branch targets a non-existant line, should it go to the next line? normally false
</li>
<li>
`--random`, `-r`: seed the random number generator
</li>
<li>
`--output-file`, `-o`: redirect PRINT to the named file
</li>
<li>
`--input-file`, `-i`: redirect INPUT from the named file, one INPUT value per line
</li>
</ul>
Notes:
- It is messy, and really tedious to do this by hand.
- Your styles will get overwritten by GitHub and the bullets will appear again.