markdown学习笔记

想要设置 —>YAML Front Matters
三个减号 然后enter

通用markdow练习!!!!赞!赞!赞!

1
这个索引通过[toc]来实现

[TOC]

诗的引用

  • 引用:

一盏灯,一处昏黄;一简书,一杯淡茶.守着那一份淡定,品读属于自己的寂寞.保持淡定,才能欣赏到最美丽的风景!保持淡定,人生从此不再寂寞.

朝辞白帝彩云间

千里江陵一日还

两岸猿声啼不住

轻舟已过万重山

1
2
3
> 引用
>
> 引用

粗体和斜体

1
2
3
*斜体*
**粗体**
__粗体__

斜体
粗体
粗体

制表

command + T

注意:表格在从多到少的过程中,多出的部分会被自动删除掉,当然,我可以command + Z

超赞啊 这是第二 这是第三 这是第四
这是第
这是第col2,row5

来看看代码和数学公式输入:

代码

行内代码 这是行内代码 这是左右二边加了一个`

1
2
3
4
NSString *str = @"sxiaobb@yeah.net";
NSUrl *url = @"baidu.com";
6^2+53333*3-4/23=?
1
2
3
Here's an example:

function test() {
console.log(“notice the blank line before this function?”);
}

1
2
3
4
5
6
7
syntax highlighting:
​```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

1
2
Here's an example:

function test() {
console.log(“notice the blank line before this function?”);
}

1
2
3
4
5
6
syntax highlighting:
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

数学式子

1
2
3
4
5
6
7
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\
\end{vmatrix}
$$

$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \
\end{vmatrix}
$$

用$$ 开头 用$$结尾

task list

- [ ] 在后面还有一个空格,依次输入 -,空格,[,空格,],空格. 这样六个字符…..

  • [ ] complete
1
如果要输出勾选了的 那是 - [X] 这样,注意:] 后面还有一个空格
  • [x] ​

有序和无序列

无序

1
2
3
4
5
* list1
- list
+ list
- list - list2 - list
- list
  • list1
  • list
  • list
  • list - list2 - list
  • list
1
2
3
4
5
6
* asfa 行一
* asff 行二
* sdf 行三
* sfff 行四
* adf 行五
像这样一级一级下去,是写好行一后enter 再tab一下 出现行二 类推下去
  • asfa
    • asff
      • sdf
        • sfff
          • ad

有序

1
2
3
1. name
2. property
3. test 像这样enter下去,前面的标号会自动加上去
  1. name
  2. property
  3. test

超链接

第一种情况

1
2
3
This is [an example](http://example.com/ "Title") inline link.
[This link](http://example.net/) has no title attribute.

This is an example inline link. ( 这个和下面这一行没什么区别啊!!)(加了一个title属性,然并卵)

This link has no title attribute.

1
2
[link text][A]
[A]: www.baidu.com

link text

([id]: http://example.com/ "Optional Title Here")(原来这个是这样用! 必须是www.baidu.com)

link text

  • 下面是一个参考式链接的范例:

I get 10 times more traffic from Google than from
Yahoo or MSN.

  • 如果改成用链接名称的方式写:(这样就省略了name,直接用前面的来做name)

I get 10 times more traffic from Google than from
Yahoo or MSN.

  • 下面是用行内式写的同样一段内容的 Markdown 文件,提供作为比较之用:

I get 10 times more traffic from Google
than from Yahoo or
MSN.(和用二个[]的做比较而已)

参考式总结:参考式的链接其实重点不在于它比较好写,而是它比较好读

然而,最简单的超链接

<http://example.com/> 右右一个< > 就搞定了

http://example.com/

这样不行。。。(要加上http://) http://baidu.com

zby2008lkw@163.com

图片

下面来插入图片 格式:

1
![](https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png)

  • 参考式的图片语法则长得像这样:

    1
    ![Alt text][id]

Alt text
「id」是图片参考的名称,图片参考的定义方式则和连结参考一样:

第二种情况(显示链接中带括号的图片)

链接中带括号,所以用二个[];

删除线

删除掉自己 这个是在左右二边分别加上二个~~ 这样写删除线

制表符\

#

\

*

Markdown 支持以下这些符号前面加上反斜杠来帮助插入普通的符号:

\ 反斜线
` 反引号

  • 星号
    _ 底线
    {} 花括号
    [] 方括号
    () 括弧

    井字号

  • 加号
  • 减号
    . 英文句点
    ! 惊叹号

Emoji

​:smile: 这个是这样打出来的: :smile: 左右一个冒号

¥100!!!

¥100
1
2
3
4
5
6
## 下标和上标
用右右<u>分别</u>一个~

H~2~O
H^2^

1
2
3
4
5
6
7
H~2~O
H^2^
## 下划线
<u>下划线</u>

下划线产

1
2
3
4
5
6
7
## 角注 注释
```markdown
You can create footnotes like this[^footnote].
[^footnote]: Here is the *text* of the **footnote**.

You can create footnotes like this[^footnote].

[^footnote]: Here is the text of the footnote.

1
2
3
我来试试角注,这个世界谁最帅[^答案].
[^答案]: 这个世界最帅的当然是作者.

我来试试角注,这个世界谁最帅^答案.

水平分隔线



Input *** or --- on a blank line and press return will draw a horizontal line.

Inline Formatting 行内样式

The following is a list of optional inline markups supported:

Option name Markup Result if enabled
Intra-word emphasis So A*maz*ing So Amazing
Strikethrough ~~Much wow~~ Much wow
Underline [^under] _So doge_ So doge
Quote [^quote] \”Such editor\” Such editor
Highlight(高亮) \==So good\== So good
Superscript hoge\^(fuga) hogefuga
Autolink http://t.co http://t.co
Footnotes [\^4] and [\^4]: [^4] and footnote 4

Happy writing! [^4]

[^4]: test from by

[^emphasize]: If Underlines is turned on, _this notation_ will render as underlined instead of emphasized

热评文章