Github-Markdown语法

版权声明:一起学习,一起进步,一起coding https://blog.csdn.net/sunshine2285/article/details/88778604

markdown 语法入门

孙浩杰


使用markdown心得体会:

  • markdown特别适合写博客,兼容部分html标签,可以高亮显示代码。
  • 语法简单好用,而且可以直接导出pdf。
  • 各种语法组合,可以写出简单优雅的文档,赞!

  1. 我是一个引用

  2. //接下来是C语言代码
    #include <stdio.h>
    
    int main(int argc, char** argv)
    {
        printf("Hello world");
        return 0;
    }
    
  3. 我是 粗体

  4. 我是 斜体

  5. 我是 删除线

  6. 我是 inline codeprintf("hello world!")

  7. 我是超链接:GitHub

  8. 我是图片picture

  9. 我是ordered

    1. Item 1
    2. Item 2
    3. Item 3
      1. Item 3a
      2. Item 3b
  10. 我是unordered

    • Item 1
    • Item 2
      • Item 2a
      • Item 2b
  11. 我是 taskList

    • coding task
    • running task
    • other task
    • other task
  12. 我是table

    First Header Second Header
    hello
    world
    welcome
    you
    left center right
    hello world language
    welcome
    you
    c/c++
  13. 我要跳转到 top,我要跳转到 title,我要跳转到c语言代码

  14. code above

<span id='top'></span>
### <span id = 'title'> <center> markdown 语法入门</center> </span>
<p align='right'> 孙浩杰 </p> 

---
1. >我是一个引用

1. <span id='code'></span>
    \```c
    //接下来是C语言代码
    #include <stdio.h>
    
    int main(int argc, char** argv)
    {
        printf("Hello world");
        return 0;
    }
   \```

1. 我是 **粗体**
1. 我是 *斜体* 
1. 我是 ~~删除线~~
1. 我是 `inline code`,`printf("hello world!")`
1. 我是超链接:[GitHub](http://github.com "press me")
1. 我是图片![picture](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png "I am a github cat! miao~")
1. 我是`ordered`:
    1. Item 1
    1. Item 2
    1. Item 3
        1. Item 3a
        1. Item 3b
1. 我是`unordered`
    
    * Item 1
    * Item 2
        * Item 2a
        * Item 2b

1. 我是 `taskList`

    - [x] coding task
    - [x] running task
    - [ ] other task
    - [ ] other task
1. 我是`table`
    First Header | Second Header
    ------------ | -------------
    <center>hello</center>| world
    **welcome** | <center>*you*<center>

      left  | center | right
    :--- | :---:|---:
    hello| world | language
    **welcome** | <center>*you*<center> | c/c++
1. 我要跳转到 [top](#top),我要跳转到 [title](#title),我要跳转到[c语言代码](#code)
<span id='end'> </span>

猜你喜欢

转载自blog.csdn.net/sunshine2285/article/details/88778604