如何在markdown中插入缩进

发布于 2024-12-26 13:47:12 字数 146 浏览 3 评论 0原文

我想使用 markdown 将文本格式设置为如下所示:

wanted format

我该如何编写降价文件?

I want to make the format of my text just as below by using markdown:

wanted format

how could i write the markdown file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

演多会厌 2025-01-02 13:47:12

作为问题标题的一般答案:

使用“大于号后跟空格 (> )”将缩进该行:

> This line will be indented.

这不仅适用于 Jupyter,还适用于其他降价。

例如,StackOverflow 页面上显示的缩进文本如下所示:

该行将缩进。

来自此 IBM markdown 备忘单

As a general answer to the title of the question:

Use the "Greater-Than Sign followed by a Space (> )" will indent the line:

> This line will be indented.

This will work in not only Jupyter but also other markdowns.

E.g. The indented text shown here on the StackOverflow page is like this:

This line will be indented.

Credit from this IBM markdown cheatsheet.

撕心裂肺的伤痛 2025-01-02 13:47:12
 1. 1
 1. 2
   1. 1
   1. 2
 1. 3

输出

  1. 1
  2. 2
    1. 1
    2. 2
  3. 3

子数2.1. 在 HTML 中实现起来并不容易,这就是这里的限制。

 1. 1
 1. 2
   1. 1
   1. 2
 1. 3

outputs

  1. 1
  2. 2
    1. 1
    2. 2
  3. 3

the sub-numbers 2.1. is not super easy to achieve in HTML, that's the limitation here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文