正如 Kanye West 所说: > We're living the future so > the present is our past.
分割线
1
如下,三个或者更多的: 连字符: --- 星号: *** 下划线: ___
行内代码
1
我觉得你应该在这里使用 `function(){console.log('行内代码')}` 才对。
代码块
你可以在你的代码上面和下面添加 ``` 来表示代码块
语法高亮
代码块可以添加任何一种语言的语法高亮,如:
{.class1 .class}
1 2 3
functionadd(x, y) { return x + y; }
代码行数
如果你想要你的代码块显示代码行数,只要添加 line-numbers class 就可以了。例如:
{.line-numbers}
1 2 3
functionadd(x, y) { return x + y; }
你可以通过添加 highlight 属性的方式来高亮代码行数,例如:
{.line-numbers, highlight
1 2 3 4
functionadd(x, y) { return x + y; } var number = add(10, 20);
任务列表
1 2 3
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported - [x] list syntax required (any unordered or ordered list supported) - [x] this is a complete item - [ ] this is an incomplete item
@mentions, #refs, links, formatting, and tags supported
list syntax required (any unordered or ordered list supported)
this is a complete item
this is an incomplete item
表格
1 2
First Header | Second Header ------------ | ------------- Content from cell 1 | Content from cell 2 Content in the first column | Content in the second column