MarkDown简单使用

作者: dreamkong | 来源:发表于2017-10-26 17:52 被阅读7次

上面是原始文本,下面是对应Markdown效果,整理出来,方便查阅.

A First Level Header
====================

A First Level Header

A Second Level Header
---------------------

A Second Level Header

### Header 3

Header 3

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

This is a blockquote.

This is the second paragraph in the blockquote.

This is an H2 in a blockquote

Some of these words *are emphasized*.
Some of these words _are emphasized also_.
Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.

Some of these words are emphasized.
Some of these words are emphasized also.
Use two asterisks for strong emphasis.
Or, if you prefer, use two underscores instead.

+ Candy.
+ Gum.
+ Booze.
- Candy.
- Gum.
- Booze.
* Candy.
* Gum.
* Booze.

1. Red
2. Green
3. Blue

* A list item.
        
    With multiple paragraphs.

* Another item in the list.
  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.
  1. Red
  2. Green
  3. Blue
  • A list item.

    With multiple paragraphs.

  • Another item in the list.

This is an [example link](http://example.com/).

This is an [example link](http://example.com/ "With a Title").

I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].

[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"

I start my morning with a cup of coffee and
[The New York Times][NY Times].

[ny times]: http://www.nytimes.com/

This is an example link.

This is an example link.

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

I start my morning with a cup of coffee and
The New York Times.

![alt text](http://owz0zbwsq.bkt.clouddn.com/Failed%20building%20wheel%20for%20Twisted.png "Title")

![alt text][id]

[id]: http://owz0zbwsq.bkt.clouddn.com/Failed%20building%20wheel%20for%20Twisted.png "Title"
alt textalt text alt textalt text
I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `—`
instead of decimal-encoded entites like `—`.

I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like
instead of decimal-encoded entites like .

If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:

<blockquote>
<p>For example.</p>
</blockquote>

C#:

    //这里显示一些代码,在正文显示中会自动识别语言,进行代码染色,这是一段C#代码
    public class Blog
    {
         public int Id { get; set; }
         public string Subject { get; set; }
    }

Python:

    keywords = ["dsaa","Asd","sadc","Gdfd","gdfdd","gaf","gabdddddd","eg"]
    print dict([(i[0],list(i[1])) for i in groupby(sorted(keywords),lambda    x:x[0].lower())])

Javascript:

    /**
     * nth element in the fibonacci series.
     * @param n >= 0
     * @return the nth element, >= 0.
     */
    function fib(n) {
        var a = 1, b = 1;
        var tmp;
        while (--n >= 0) {
            tmp = a;
            a += b;
           b = tmp;
        }
        return a;
    }

    document.write(fib(10));
    

If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:

<blockquote>
<p>For example.</p>
</blockquote>

C#:

//这里显示一些代码,在正文显示中会自动识别语言,进行代码染色,这是一段C#代码
public class Blog
{
     public int Id { get; set; }
     public string Subject { get; set; }
}

Python:

keywords = ["dsaa","Asd","sadc","Gdfd","gdfdd","gaf","gabdddddd","eg"]
print dict([(i[0],list(i[1])) for i in groupby(sorted(keywords),lambda    x:x[0].lower())])

Javascript:

/**
 * nth element in the fibonacci series.
 * @param n >= 0
 * @return the nth element, >= 0.
 */
function fib(n) {
    var a = 1, b = 1;
    var tmp;
    while (--n >= 0) {
        tmp = a;
        a += b;
       b = tmp;
    }
    return a;
}

document.write(fib(10));

相关文章

  • markdown的简单使用

    markdown简单小结 简书使用markdown需要先在设置里面将默认编辑器改为markdown,使用时选择视图...

  • Markdown 简单使用

    请参考: https://www.zybuluo.com/mdeditor 欢迎使用 Cmd Markdown 编...

  • Markdown简单使用

    Markdown编辑器使用StackEdit修改而来。 Markdown基本的语法 代码块高亮 Markdown基...

  • Markdown简单使用

    简书说明文档 一级标题 二级标题 三级标题 列表 文本1 文本2 文本3 链接 连接到百度 图片 引用 这是一首简...

  • 简单使用markdown

    标题: 语法###素数和` 示例素数和 无序列表: 语法* 1111* 2222 示例11112222 图片 语法...

  • Markdown简单使用

    Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式...

  • MarkDown简单使用

    上面是原始文本,下面是对应Markdown效果,整理出来,方便查阅. A First Level Header A...

  • markdown简单使用

    你搜索到这篇文章,很有可能你也是一个码农,然后和我一样又想利用简书来记录自己的学习成果,这时候有个头疼的问题,就是...

  • Markdown简单使用

    markdown 练习 一级标题 二级标题 三级标题 四级标题 五级标题 列表1 列表2 列表3 first se...

  • Markdown 简单使用

    1. 标题 # 一级标题## 二级标题### 三级标题#### 四级标题##### 五级标题###### 六级标题...

网友评论

    本文标题:MarkDown简单使用

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