Skip to content

Latest commit

 

History

History
299 lines (173 loc) · 5.21 KB

example.md

File metadata and controls

299 lines (173 loc) · 5.21 KB

h1 标题 8-)

h2 标题

h3 标题

h4 标题

h5 标题
h6 标题

分割线




Typographic replacements

有些字体包没有一些字符哦!

Enable typographer option to see result.

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

test.. test... test..... test?..... test!....

!!!!!! ???? ,, -- ---

强调

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough

引用块

Blockquotes can also be nested...

...by using additional greater-than signs right next to each other...

...or with spaces between arrows.

列表

不排序

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

排序

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. You can use sequential numbers...

  5. ...or keep all the numbers as 1.

设置开始数字

  1. foo
  2. bar

代码

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

表格

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Right aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

超链接

link text

鼠标悬停会有提示

link with title

Autoconverted link https://github.com/nodeca/pica (enable linkify to see)

图像

Stormtroopocat

Like links, Images also have a footnote style syntax

Alt text

With a reference later in the document defining the URL location:

Plugins(插件)

The killer feature of markdown-it is very effective support of syntax plugins.

Classic markup: 😉 :crush: 😢 :tear: 😆 😋

Shortcuts (emoticons): :-) :-( 8-) ;)

see how to change output with twemoji.

  • 19^th^
  • H2O

++Inserted text++

==Marked text==

点一下就知道啥用法了!

Footnote 1 link1.

Footnote 2 link2.

Inline footnote^[Text of inline footnote] definition.

Duplicated footnote reference2.

Term 1

: Definition 1 with lazy continuation.

Term 2 with inline markup

: Definition 2

    { some code, part of Definition 2 }

Third paragraph of definition 2.

Compact style:

Term 1 ~ Definition 1

Term 2 ~ Definition 2a ~ Definition 2b

鼠标悬停出现提示信息

This is HTML abbreviation example.

It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.

*[HTML]: 出现了吧!意不意外,惊不惊喜。

TOC目录

[TOC]

图片大小

![Minion](https://octodex.github.com/images/minion.png =100x100)

HTML属性

Example input:

# header {.style-me}
paragraph {data-toggle=modal}

Output:

<h1 class="style-me">header</h1>
<p data-toggle="modal">paragraph</p>

or

![](1.png){style=width:200px;height:100px}

更多用法:https://github.com/arve0/markdown-it-attrs

任务列表

  • 已完成任务
  • 未完成任务

数学公式

行内公式:$...$

$e^{x^2}\neq{e^x}^2$

块公式:$$...$$

$$e^{x^2}\neq{e^x}^2$$

来个 "复杂点" 的:

$$H(D_2) = -(\frac{2}{4}\ log_2 \frac{2}{4} + \frac{2}{4}\ log_2 \frac{2}{4}) = 1$$

矩阵:

$$ \begin{pmatrix} 1 & a_1 & a_1^2 & \cdots & a_1^n \\ 1 & a_2 & a_2^2 & \cdots & a_2^n \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & a_m & a_m^2 & \cdots & a_m^n \\ \end{pmatrix} $$

UML

@startuml Bob -> Alice : hello @enduml

更多用法:http://www.plantuml.com/

Footnotes

  1. Footnote can have markup

    and multiple paragraphs.

  2. Footnote text. 2