[Markdown]语法简介

Markdown语法简介

原理: markdown实际上是把这些标签最后转化为html标签

Markdown 的目标是实现「易读易写」.

可读性, 无论如何, 都是最重要的. 一份使用 Markdown 格式撰写的文件应该可以直接以纯文本发布, 并且看起来不会像是由许多标签或是格式指令所构成. Markdown 语法受到一些既有 text-to-HTML 格式的影响, 包括 Setext、atx、Textile、reStructuredText、Grutatext 和 EtText, 而最大灵感来源其实是纯文本电子邮件的格式。

0.参考

1.标题

  • #[n] 标题 => n级标题(html: h1-h6)

2.列表

  • 无序列表: * 列表内容(*±) => (html: ul>li)
  • 有序列表: 1. 列表内容 => (html: ol>li)
  • 任务列表:
    • 待办事项
    • 完成事项

3.区块引用

  • 引用内容 => (html: blockquote)

4.华丽分割线

  • *** (*-_至少3个)

5.链接

6.图片

  • 行内式: img
  • 参数式:

    image

7.注释

The HTML specification is maintained by the W3C.

8.代码框

  • 单行: <p>code</p>
  • 多行:
    <p>code</p>
    

9.表格

  • 必须有至少一个-, 多个时中间不允许有空格; 默认左对齐, :与-之间不允许有空格;
    head1head2head3head4
    r1c1r1c2r1c3r1c4
    r2c1r2c2r2c3r2c41

10.强调

  • 字体倾斜:
    • 倾斜
    • 倾斜
  • 字体加粗:
    • 加粗
    • 加粗
  • 倾斜加粗:
    • 斜粗
    • 斜粗
  • 字体高亮:
    • highlight

11. 上标/下标

上标: X2
下标: H2O

12.删除线

  • 请删掉我吧

13.转义

  • \
  • `
  • *
  • _
  • -
  • +
  • .
  • !
  • #
  • {
  • }
  • [
  • ]

14. 注脚

You can create footnotes like this1 and this2.

15. Table of Contents (TOC)

Enter [toc] and press the Return key to create a “Table of Contents” section. The TOC extracts all headers from the document, and its contents are updated automatically as you add to the document.

编辑器

Typora


  1. Here is the text of the first footnote. ↩︎ ↩︎

  2. footnote ↩︎

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值