代码块亮语法
```语言
$(document).ready(function () {
alert('hello world');
});
\```
支持的语言:swift,objectivec, javascript, json, java, go, ruby, xml, markdown, 1c, abnf, accesslog, actionscript, ada, apache, applescript, arduino, armasm, asciidoc, aspectj, autohotkey, autoit, avrasm, awk, axapta, bash, basic, bnf, brainfuck, cal, capnproto, ceylon, clean, clojure, clojure-repl, cmake, coffeescript, coq, cos, cpp, crmsh, crystal, cs, csp, css, d, dart, delphi, diff, django, dns, dockerfile, dos, dsconfig, dts, dust, ebnf, elixir, elm, erb, erlang, erlang-repl, excel, fix, flix, fortran, fsharp, gams, gauss, gcode, gherkin, glsl, golo, gradle, groovy, haml, handlebars, haskell, haxe, hsp, htmlbars, http, hy, inform7, ini, irpf90, julia, kotlin, lasso, ldif, leaf, less, lisp, livecodeserver, livescript, llvm, lsl, lua, makefile, mathematica, matlab, maxima, mel, mercury, mipsasm, mizar, mojolicious, monkey, moonscript, n1ql, nginx, nimrod, nix, nsis, ocaml, openscad, oxygene, parser3, perl, pf, php, pony, powershell, processing, profile, prolog, protobuf, puppet, purebasic, python, q, qml, r, rib, roboconf, rsl, ruleslanguage, rust, scala, scheme, scilab, scss, smali, smalltalk, sml, sqf, sql, stan, stata, step21, stylus, subunit, taggerscript, tap, tcl, tex, thrift, tp, twig, typescript, vala, vbnet, vbscript, vbscript-html, verilog, vhdl, vim, x86asm, xl, xquery, yaml, zephir
也可以使用 4 空格缩进,再贴上代码,实现相同的的效果
kmarkdown高亮语法
{\% highlight scss \%}
.container {
background: $background-color;
padding: 0;
@include media-query($on-palm) {
background: rgba($background-color, .95);
width: 100%;
}
}
{\% endhighlight \%}`
显示效果:
.container {
background: $background-color;
padding: 0;
@include media-query($on-palm) {
background: rgba($background-color, .95);
width: 100%;
}
}
标题
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
粗斜体
*斜体文本*
**粗体文本**
***粗斜体文本***
~~删除线~~
==高亮==
显示效果:
- 斜体文本
- 粗体文本
- 粗斜体文本
删除线- ==高亮==
分割线
分割线最常使用就是三个或以上*
,还可以使用-
和_
。
***
---
___
显示效果:
自动在生产文章索引
[TOC]
kmarkdow生产文章索引
* 目录 //必须,*号后面的内容随意。
{:toc #markdown-toc} //生成的目录列表id="markdown-toc",也可改为其他。
超链接
文字链接 [name](url)
网址链接 <url>
图片链接 
序列
普通无序列表
- 列表文本前使用 [减号+空格]
+ 列表文本前使用 [加号+空格]
* 列表文本前使用 [星号+空格]
普通有序列表
1. 列表前使用 [数字.+空格]
嵌套排序
使用tab键分级
- 嵌套列表
+ 嵌套列表
+ 嵌套列表
- 嵌套列表
* 嵌套列表
- 嵌套列表
显示效果:
- 嵌套列表
- 嵌套列表
- 嵌套列表
- 嵌套列表
- 嵌套列表
- 嵌套列表
引用
> 引用文本 [大于号+空格]
>> 嵌套引用
显示效果:
引用文本
嵌套引用
三级嵌套
四级嵌套
表格
name | age
---- | ---
LearnShare | 12
Mike | 32
显示效果:
name | age | blog |
---|---|---|
LearnShare | 12 | |
Mike | 32 | 主页 |
对齐
在表头下方的分隔线标记中加入 :,即可标记下方单元格内容的对齐方式:
- :— 代表左对齐
- :–: 代表居中对齐
- —: 代表右对齐