我想写几行文字。除了每行从第6列开始之外,它们应该正常格式化。例如,我不希望代码块格式规则使这一文本块看起来像代码,因为我将使用其他格式,如粗体面等。如何在Markdown中做到这一点?
当前回答
如果你用的是项目符号,试试这个:
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
这是我在样式化markdown时使用的方法。
其他回答
好吧,在你的R代码中有一些HTML,我做了下面的代码来在R Markdown中生成纯文本。<h3 style="text-indent: 15em;">将文本缩进15个空格。对于原来的问题,将15改为6。
## Option: Du Pont Ratio Concept - (ROE Decomposition)
### (Closed Quotes/Total Premium) = (Closed Quotes/Quotes Issued) X <br>
<h3 style="text-indent: 15em;">
(Quotes Issued/Renewal Premium) X <br></h3>
<h3 style="text-indent: 15em;">
(Renewal Premium/Total Premium)</h3>
因此结果代码给出了我想要的输出格式。我正在使用标签Markdown文档,并正在寻找对齐()文本工作。
做制表符,然后是+号,然后空格,然后是内容
So
*一级 +二级标签
在gitlab.com上,一个单独的en空间(U+2002)和一个单独的em空间(U+2003)可以正常工作。
可能其他的重复或组合的不精确的空格字符也足够了。
为了完整起见,更深入的项目列表如下:
嵌套的更深层次: ----在这里留下一个空行 *第一级A项目-前面没有空格的子弹字符 *二级Aa物品- 1格足够 *三级Aaa物品- 5个空格最少 *第二级Ab项目- 4个空格也可能 *第一个B级道具
嵌套的更深层次:
first level A item - no space in front the bullet character second level Aa item - 1 space is enough third level Aaa item - 5 spaces min second level Ab item - 4 spaces possible too first level B item Nested deeper levels: ...Skip a line and indent eight spaces. (as said in the editor-help, just on this page) * first level A item - no space in front the bullet character * second level Aa item - 1 space is enough * third level Aaa item - 5 spaces min * second level Ab item - 4 spaces possible too * first level B item And there could be even more such octets of spaces.
如果你用的是项目符号,试试这个:
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
这是我在样式化markdown时使用的方法。
推荐文章
- 如何将LaTeX与Markdown混合?
- 在Python中格式化多行字典的正确方法是什么?
- 乳胶渲染在README。md在Github上
- git可以自动在空格和制表符之间切换吗?
- 在Markdown Jekyll中使用图像说明
- Slack Markdown链接没有解决
- 差异语法突出显示在Github Markdown
- 我如何创建一个文本框的笔记在markdown?
- 在Markdown中创建一个没有标题的表
- R -降价避免包装加载消息
- 在MarkDown中包含SVG(托管在GitHub上)
- 如何修复/转换崇高文本的空间缩进?
- 自动TOC在github风味markdown
- 使用pandoc从Markdown转换为PDF时设置空白大小
- 如何显示数学方程在一般github的markdown(不是github的博客)