前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >MarkDown简单使用A First Level Header

MarkDown简单使用A First Level Header

作者头像
dreamkong
发布2018-06-21 12:25:26
5270
发布2018-06-21 12:25:26
举报
文章被收录于专栏:Python爱好者Python爱好者

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

代码语言:javascript
复制
A First Level Header
====================

A First Level Header

代码语言:javascript
复制
A Second Level Header
---------------------

A Second Level Header

代码语言:javascript
复制
### Header 3

Header 3

代码语言:javascript
复制
> 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

代码语言:javascript
复制
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.

代码语言:javascript
复制
+ 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.
代码语言:javascript
复制
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.

代码语言:javascript
复制
![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 text
alt text

alt text

alt text
alt text

alt text

代码语言:javascript
复制
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 .

代码语言:javascript
复制
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#:

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

Python:

代码语言:javascript
复制
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:

代码语言: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));
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017.10.26 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • A First Level Header
    • A Second Level Header
      • Header 3
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档