table of Contents
Welcome to Leanote! Welcome to Leanote!
1. typesetting
Bold Italic
This is a wrong text.
Quote:
The official cited Leanote, why do Leanote, because ...
There are filling the list:
- Support Vim
- Support Emacs
Unordered list:
- Item 1
- Item 2
2. Pictures and links
Picture:
Link:
This is the official blog of the links go Leanote
3. Title
The following is a title at all levels, supports up to 5 title
# h1
## h2
### h3
#### h4
##### h4
###### h5
4. Code
Example:
function get(key) {
return m[key];
}
Example code highlighting:
/**
* nth element in the fibonacci series.
* @param n >= 0
* @return the nth element, >= 0.
*/
function fib(n) {
var a = 1, b = 1;
var tmp;
while (--n >= 0) {
tmp = a;
a += b;
b = tmp;
}
return a;
}
document.write(fib(10));
class Employee:
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
5. Markdown extension
Markdown Extended Support:
- form
- Defined type list
- Html tags
- footnote
- todo list
- table of Contents
- FIG flowchart timing
- MathJax formula
Table 5.1
Item | Value |
---|---|
Computer | $1600 |
Phone | $12 |
Pipe | $1 |
You can specify the alignment, such as left-aligned Item column, Value column right-aligned, centered column Qty
Item | Value | Qty |
---|---|---|
Computer | $1600 | 5 |
Phone | $12 | 12 |
Pipe | $1 | 234 |
5.2 type defined list
Noun 1
: Definition 1 (a left side of the colon and the four visible invisible spaces)
Code Block 2
: This is the definition of the code block (a left side of the colon and the four visible invisible spaces)
代码块(左侧有八个不可见的空格)
5.3 Html tags
Support Html tags nested in Markdown syntax, for example, you can write a Html table spanning two lines:
<table>
<tr>
<th rowspan="2">值班人员</th>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
</tr>
<tr>
<td>李强</td>
<td>张明</td>
<td>王平</td>
</tr>
</table>
Duty | Monday | Tuesday | Wednesday |
---|---|---|---|
Li Qiang | Zhang | Wang Ping |
Tip , if you want to width and height of the image controls, you can also img tags, such as:
5.4 Footnotes
Leanote [^ footnote] to create a footnote
[^ footnote]: Leanote is a powerful open source cloud product notes.
5.5 todo list
Leanote immediate tasks schedule:
- [X] bbs maintenance
- [] Desktop released a new version
- [X] Markdown editor to add Todo list
- [X] fix black and white issue
- [] Repair issue3
- [] Leanote maintenance
- [] Repair issue4
5.6 Contents
By `` Insert Table of Contents in a document, such as:
[TOC]
Timing diagram flowchart 5.7
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
flow chart:
st=>start: Start
e=>end
op=>operation: My Operation
cond=>condition: Yes or No?
st->op->cond
cond(yes)->e
cond(no)->op
Tip: For more on grammar and flow diagram of the timing chart, please refer to:
5.8 MathJax formula
$ Display inline official:
Mass energy conservation equation can be expressed in a very simple equation $ E = mc ^ 2 $.
$$ for a whole line formula:
$$\sum_{i=1}^n a_i=0$$
$$f(x_1,x_x,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 $$
$$\sum^{j-1}{k=0}{\widehat{\gamma}{kj} z_k}$$
More complex formulas:
$$
\ the eqnarray the begin {}
\ VEC \ nabla \ Times (\ VEC \ nabla F) & & = 0 \ cdots \ cdots gradient field must irrotational field \
\ VEC \ nabla \ CDOT (\ VEC \ nabla \ times \ vec F) & = & 0 \ cdots \ cdots curl field must be a non-finish \
\ VEC \ nabla \ CDOT (\ VEC \ nabla F) & = & {\ VEC \ nabla} ^. 2F \
\ VEC \ nabla \ Times (\ VEC \ nabla \ Times \ VEC F.) & = & \ VEC \ nabla (\ VEC \ nabla \ CDOT \ VEC F.) - {\ VEC \ nabla} ^ 2 \ VEC F. \
\ End { } the eqnarray
$$
Access MathJax For more usage.