瑞客论坛

 找回密码
 立即注册
查看: 1358|回复: 1

Markdown语法参考

[复制链接]

金币4034  第365名

10

主题

1028

回帖

1万

积分

论坛元老

Rank: 8Rank: 8

威望
4381
贡献
5035
热心值
0
金币
4034
注册时间
2020-2-24
发表于 2020-2-24 16:23 | 显示全部楼层 |阅读模式
本帖最后由 alterem 于 2020-2-24 16:26 编辑

Standard MarkdownStrong and Emphasize
  • *emphasize*   **strong**
  • _emphasize_   __strong__
Links and Email
Inline:
  • An [example](http://url.com/ "Title")
Reference-style labels (titles are optional):
  • An [example][id]. Then, anywhere
  • else in the doc, define the link:
  •   [id]: http://example.com/  "Title"
Email:
  • An email <example@example.com> link.
Images
Inline (titles are optional):
  • ![alt text](/path/img.jpg "Title")
Reference-style:
  • ![alt text][id
  • [id]: /url/to/img.jpg "Title"
Headers
  • Setext-style:
  • Header 1
  • ========
  • Header 2
  • --------
atx-style (closing #’s are optional):
  • # Header 1 #
  • ## Header 2 ##
  • ###### Header 6
Lists
Ordered, without paragraphs:
  • 1.  Foo
  • 2.  Bar
Unordered, with paragraphs:
  • *   A list item.
  •     With multiple paragraphs.
  • *   Bar
You can nest them:
  • *   Abacus
  •     * answer
  • *   Bubbles
  •     1.  bunk
  •     2.  bupkis
  •         * BELITTLER
  •     3. burper
  • *   Cunning
Blockquotes
  • > Email-style angle brackets
  • > are used for blockquotes.
  • > > And, they can be nested.
  • > #### Headers in blockquotes
  • >
  • > * You can quote a list.
  • > * Etc.
Inline Code
  • `<code>` spans are delimited
  • by backticks.
  • You can include literal backticks
  • like `` `this` ``.
Block Code
Indent every line of a code block by at least 4 spaces or 1 tab.
  • This is a normal paragraph.
  •     This is a preformatted
  •     code block.
Horizontal Rules
Three or more dashes or asterisks:
  • ---
  • * * *
  • - - - -
Hard Line Breaks
End a line with two or more spaces:
  • Roses are red,   
  • Violets are blue.
回复

使用道具 举报

金币312  第4277名

4

主题

1327

回帖

6464

积分

论坛元老

Rank: 8Rank: 8

威望
3647
贡献
2505
热心值
0
金币
312
注册时间
2023-2-9
发表于 2024-2-23 16:48 | 显示全部楼层
66666666666666
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|瑞客论坛 |网站地图

GMT+8, 2024-11-22 13:52

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表