type
status
slug
tags
category
icon
password
Table of content
Sample heading 1Sample heading 2Sample heading 3Sample heading 4Sample heading 5Sample heading 6Header 1Header 2Header 3Header 4 with code not transformedHeader 5Header 6There’s a horizontal rule below thisAnd an ordered listAnd an ordered list, continuedAnd an ordered list starting from 42And a nested listNesting an ol in ul in an olAnd a task listNesting task listsNesting a ul in a task listNesting a task list in a ulImagesLabelsDefinition lists can be used with HTML syntaxMultiple description terms and valuesMore codeMermaid Diagrams Mermaid 流程图Table of contents 目录 引用超链的字母要小写The startThe middleMarkdown 脚注Markdown 链接语法 link
Text can be bold, italic, or strikethrough.
Sample heading 1
Sample heading 2
Sample heading 3
Sample heading 4
Sample heading 5
Sample heading 6
Header 1
This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
Header 2
This is a blockquote following a header.When something is important enough, you do it even if the odds are not in your favor.
Header 3
Header 4 with code not transformed
- This is an unordered list following a header.
- This is an unordered list following a header.
- This is an unordered list following a header.
Header 5
- This is an ordered list following a header.
- This is an ordered list following a header.
- This is an ordered list following a header.
Header 6
head1 | head two | three |
ok | good swedish fish | nice |
out of stock | good and plenty | nice |
ok | good oreos | hmm |
ok | good zoute drop | yumm |
There’s a horizontal rule below this
- Item 1
- Item 2
- Item 3
- Item 4
- Item 4
- Item 5
And an ordered list
- Item one
- Item two
- Item three
- Item four
And an ordered list, continued
- Item one
- Item two
Some text
{:style=“counter-reset:none”}
- Item three
- Item four
And an ordered list starting from 42
{:style=“counter-reset:step-counter 41”}
- Item 42
- Item 43
- Item 44
And a nested list
- level 1 item
- level 2 item
- level 2 item
- level 3 item
- level 3 item
- level 1 item
- level 2 item
- level 2 item
- level 2 item
- level 1 item
- level 2 item
- level 2 item
- level 1 item
Nesting an ol in ul in an ol
- level 1 item (ul)
- level 2 item (ol)
- level 2 item (ol)
- level 3 item (ul)
- level 3 item (ul)
- level 1 item (ul)
- level 2 item (ol)
- level 2 item (ol)
- level 3 item (ul)
- level 3 item (ul)
- level 4 item (ol)
- level 4 item (ol)
- level 3 item (ul)
- level 3 item (ul)
- level 1 item (ul)
And a task list
Hello, this is a TODO item
Hello, this is another TODO item
Goodbye, this item is done
Nesting task lists
level 1 item (task)
level 2 item (task)
level 2 item (task)
level 1 item (task)
level 1 item (task)
Nesting a ul in a task list
level 1 item (task)
- level 2 item (ul)
- level 2 item (ul)
level 1 item (task)
level 1 item (task)
Nesting a task list in a ul
- level 1 item (ul)
level 2 item (task)
level 2 item (task)
- level 1 item (ul)
- level 1 item (ul)
Images
Labels
I’m a label {: .label }
blue {: .label .label-blue } green {: .label .label-green } purple {: .label .label-purple } yellow {: .label .label-yellow } red {: .label .label-red }
bold {: .label } italic {: .label } bold + italic {: .label }
Definition lists can be used with HTML syntax
Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green
Multiple description terms and values
TermBrief description of Term
Longer TermLonger description of Term, possibly more than one line
TermFirst description of Term, possibly more than one line
Second description of Term, possibly more than one line
Term1 Term2 : Single description of Term1 and Term2, possibly more than one line
Term1 Term2 : First description of Term1 and Term2, possibly more than one line
: Second description of Term1 and Term2, possibly more than one line
More code
```python{% raw %} def dump_args(func): “This decorator dumps out the arguments passed to a function before calling it” argnames = func.func_code.co_varnames[:func.func_code.co_argcount] fname = func.func_name def echo_func(*args,**kwargs): print fname, “:”, ‘,’.join( ‘%s=%r’ % entry for entry in zip(argnames,args) + kwargs.items()) return func(*args, **kwargs) return echo_func
@dump_args def f1(a,b,c): print a + b + c
f1(1, 2, 3)
def precondition(precondition, use_conditions=DEFAULT_ON): return conditions(precondition, None, use_conditions)
def postcondition(postcondition, use_conditions=DEFAULT_ON): return conditions(None, postcondition, use_conditions)
class conditions(object): slots = (’__precondition’, ’__postcondition’)
{% endraw %}```
Mermaid Diagrams Mermaid 流程图
The following code is displayed as a diagram only when a
mermaid key supplied in _config.yml.Instead of
flowchart one can also use graph.from left to right (
LR).from top to bottom (TD or TB).Table of contents 目录 引用超链的字母要小写
The start
The middle
Markdown 脚注
脚注使您可以添加注释和参考,而不会使文档正文混乱。当您创建脚注时,带有脚注的上标数字会出现在您添加脚注参考的位置。读者可以单击链接以跳至页面底部的脚注内容。
要创建脚注参考,请在方括号(1)内添加插入符号和标识符。标识符可以是数字或单词,但不能包含空格或制表符。标识符仅将脚注参考与脚注本身相关联-在输出中,脚注按顺序编号。
在括号内使用另一个插入符号和数字添加脚注,并用冒号和文本(2: My footnote.)。您不必在文档末尾添加脚注。您可以将它们放在除列表,块引号和表之类的其他元素之外的任何位置。
- 正常脚注↩
- 正常脚注↩
- 正常脚注↩
- 脚注↩
- 脚注↩s'd
删除线
一行中并排显示两图片
ㅤ | ㅤ |
<img src="http://xxx.jpg"> | <img src="http://yyy.jpg"> |
Markdown 链接语法 link
注意, 不同的 Markdown 应用程序处理URL中间的空格方式不一样。为了兼容性,请尽量使用%20代替空格。
- Author:ABCPEAK
- URL:https://abcpeak.eu.org/article/markdown-grammar
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!