Markdown 常用格式记录

来源:互联网 发布:java迭代器 实现类 编辑:程序博客网 时间:2024/05/29 11:19

markdown 常用格式记录

  • markdown 常用格式记录
  • Elements
    • Headers
    • Blockquotes
  • Lists
  • Code Blocks
  • Span Elements
    • Links
    • Emphasis
    • Code
    • Images
  • Miscellaneous
  • Backslash Escapes

Elements

Headers

分隔线-,=,*语法:

    This is an H1    =============    This is an H2    -------------

分隔线效果图:

标题#+语法:

# This is an H11## This is an H2###### This is an H6

效果图:

下面依次就是语法和效果图

Blockquotes

>:

> ## This is a header.> > 1.   This is the first list item.> 2.   This is the second list item.> > Here's some example code:> >     return shell_exec("echo $input | $markdown_script");

Lists

*+-效果相同并生成无序的列表:

*   Red+   Green-   Blue

有序列表:

<ol><li>Bird</li><li>McHale</li><li>Parish</li></ol><!--序号乱序,但仍为有序-->1.  Bird2.  McHale3.  Parish1.  Bird1.  McHale1.  Parish3. Bird1. McHale8. Parish

Code Blocks

Span Elements

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

也可以:

My home[个人博客][1]     [1]: http://xudaolong.github.io "个人博客" `(去掉这个点)

Emphasis

强调:

*single asterisks*_single underscores_**double asterisks**__double underscores__

Code

一般使用 ``就能囊括变量;

包含`标志则需要隔开并双重:

``There is a literal backtick (`) here.``

Images

建议使用可复制的编辑器.

Miscellaneous

Automatic Links:

<http://example.com/>

Backslash Escapes

需要反斜杠:

\   backslash`   backtick*   asterisk_   underscore{}  curly braces[]  square brackets()  parentheses#   hash mark+   plus sign-   minus sign (hyphen).   dot!   exclamation mark
0 0
原创粉丝点击