README.md中段落内的新行 [英] New lines inside paragraph in README.md

查看:189
本文介绍了README.md中段落内的新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当编辑问题并点击预览以下降价源时:

  a 
b
c

显示新行上的每一个字母。



不过,在我看来,在README.md中推送类似的降价源结构会加入一行中的所有字母。



我想要在README中保留新行.md在这个项目中: https://github.com/zoran119/simple-read-only -test



任何想法如何?

解决方案

将新行解释为< br /> 曾经是Github风格降价的功能,但最新的帮助文档不再列出此功能。

幸运的是,你可以手动完成。最简单的方法是确保每行以两个空格结束。所以,改变

  a 
b
c

转换为

  a__ 
b__
c

(其中 _ 是空格) 。



或者,您可以添加明确的< br /> 标签。 b

  a< br />> 
b< br />
c


When editing an issue and clicking Preview the following markdown source:

a
b
c

shows every letter on a new line.

However, it seems to me that pushing similar markdown source structure in README.md joins all the letters on one line.

I'd like the new lines preserved in the README.md in this project: https://github.com/zoran119/simple-read-only-test

Any idea how?

解决方案

Interpreting newlines as <br /> used to be a feature of Github-flavored markdown, but the most recent help document no longer lists this feature.

Fortunately, you can do it manually. The easiest way is to ensure that each line ends with two spaces. So, change

a
b
c

into

a__
b__
c

(where _ is a blank space).

Or, you can add explicit <br /> tags.

a <br />
b <br />
c

这篇关于README.md中段落内的新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆