美文网首页
MarkDown 语法

MarkDown 语法

作者: MrBryan | 来源:发表于2016-05-02 13:36 被阅读42次

Part Ⅰ. Standard Markdown

Strong and Emphasize
emphasize strong
emphasize strong
Links and Email
Inline:

An example
Reference-style labels (titles are optional):

An example. Then, anywhere
else in the doc, define the link:

Email:

An email example@example.com link.
Images
Inline (titles are optional):

alt textalt text

Reference-style:

alt textalt text

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.
Part Ⅱ. Extra Syntax

Footnotes
Footnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:

That's some text with a footnote.[1]

Strikethrough
Fenced Code Blocks
Start with a line containing 3 or more backtick characters, and ends with the first line with the same number of backtick:

Fenced code blocks are like Stardard
Markdown’s regular code blocks, except that
they’re not indented and instead rely on a
start and end fence lines to delimit the code
block.

Tables
A simple table looks like this:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

If you wish, you can add a leading and tailing pipe to each line of the table:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

Specify alignement for each column by adding colons to separator lines:

First Header Second Header Third Header
Left Center Right
Left Center Right

Anchor
You can also add an anchor for an element such as Headers, then you can link to this anchor anywhere, when you click that link in the Preview view, it'll auto scroll to the place of the destination anchor.

For example below is a normal h2 Header:

This is an example

Now we add an anchor for it, here we use the name "anchor1" for the anchor, of course you can use any name you want.

This is an example

If you want to link to this anchor, simply write like this:

Click this link in the Preview view will auto scroll to the place of the destination anchor.


  1. And that's the footnote.
    Strikethrough
    Wrap with 2 tilde ~ characters:

相关文章

  • Markdown语法

    Markdown基本语法 Markdown基本语法1 Markdown基本语法2(全、有用)

  • Markdown 入门指南

    Markdown 入门指南 目录Markdown 语法的起源Markdown 语法的种类Markdown trad...

  • MARKDOWN学习之路3

    MARKDOWN学习之路3 markdown介绍markdown语法标题语法列表语法区块引用语法字体语法分割线图片...

  • 第一次markdown

    #markdown的语法据说很简单 ##markdown的语法据说很简单 ###markdown的语法据说很简单 ...

  • Markdown语法

    Markdown语法 注意: Markdown中使用到的语法符号均为英文符号 Markdown语法主要分为如下几大...

  • 00.markdowm语法

    Link: Markdown 语法说明 . Link: Markdown进阶语法整理 .

  • Markdown语法简要说明

    Markdown语法 注意:Markdown中使用到的语法符号均为英文符号 Markdown语法主要分为如下几大部...

  • Markdown语法使用指南

    Markdown 语法 以下是 Markdown 的常用语法!在以后的笔记中将持续使用 Markdown 语法进行...

  • 基本语法

    语法说明 MarkDown基本介绍及使用 MarkDown语法介绍

  • Markdown语法学习

    Markdown语法学习 目录 Markdown语法学习语法补充Markdown简介基本语法标题分隔线强调链接图片...

网友评论

      本文标题:MarkDown 语法

      本文链接:https://www.haomeiwen.com/subject/jxdlrttx.html