Markdown-Tutorial

Markdown Operating Guide

**Preface: ** This is the Markdown tutorial written by Typora.And partial syntax functions need to be turned on in Settings.

Author: Lemonade_ J J

Time: 2022/6/9

Headline

There are six levels of headings.

For the first level, you must use “#” and " ".

# Headline

If you want to reduce the font size, you can add the number of the “#”.

Quote

This part is prefixed with a "> ".

> This is a quota.

This is a quota.

List

  • Unordered List: This part is prefixed with a "* " for a filled dot or "- " and "+ " for a hollow dot.
    2. Ordered List: This part is prefixed with a number.
    • Task List: This part is prefixed with a "- [ ] ". Pay attention to the blank after the “-” and “[”.
* Unordered List:
- Unordered List:
+ Unordered List:
2. Ordered List:
- [ ] Task List:

Stylized Font

  1. Strike-through: Add “~~” before and after the text to be modified.

    ~~This is a case.~~
    
  2. Italic type: Add “*” before and after the text to be modified.

    *This is a case.*
    
    
  3. Bold type: Add “**” before and after the text to be modified.

    **This is a case.**
    
    
  4. Italic and Bold type: Add “***” before and after the text to be modified.

    ***This is a case.***
    
  5. Underline: Enter the content in the “”.

    <u>This is a case.</u>
    

    This is a case.

  6. Highlight: Add “==” before and after the text to be modified.

==This is a case.==

This is a case.

  1. Superscript: Add “^” before and after the text to be modified.

    2^x^
    

    2x

  2. Subscript: Add “~” before and after the text to be modified.

    H~2~O
    

    H2O

  3. Emphasis: Add “`” before and after the text to be modified.

    `This is a case.`
    

    This is a case.

  4. Hyperlink:

  • External jump: Enter the content in the “[ ]" and put the links to sites in the “( )”.
[This is a case.](https://www.latexlive.com/)

This is a case.

  • Internal jump: Enter the content in the “[ ]" and put the title of this document in the ( )".
[This is a case.](##Stylized Font)

[This is a case.](##Stylized Font)

  • Automatic jump: Put the links to sites in the “< >”.
<https://www.latexlive.com/>

https://www.latexlive.com/

And if you want to access to the site, you should hold down the CTRL key and click on the hyperlink.

Code Block

Use “```” and programming language types.

“```python”:

import pytorch

“```C++”

#include <iostream>

“```markdown”

> This is a quota.

Form

Use “|” to separate different cells and “-” to separate table headers and cell rows.

|    name       | price |
| :-----------: | :---: |
| fried chicken | 19    |
| cola          |  32   |
nameprice
fried chicken19
cola32

You can use “:” to mark the alignment of the contents of the cells below.

  • Left: :----

  • Middle: :----:

  • Right: ----:

Mathematical Expressions

You can render LaTeX mathematical expressions using LaTeX:

  • Inline formula: Add “$” before and after the mathematical expressions.
$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$

Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n1)!nN

  • Independent formula: Add “$$” before and after the mathematical expressions.
$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,
$$

Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=0tz1etdt.

You can find more information about LaTeX mathematical expressions here.

UML diagrams

You can render UML diagrams using Mermaid. For example, this will produce a sequence diagram:

  1. The prefix is “```mermaid”;
  2. After the break add “sequenceDiagram” as the type of figure;
  3. Enter the content;
  4. The suffix is “```”。
```mermaid
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.

Bob-->>Alice: Checking with John...
Alice->>John: Yes... John, how are you?
```
Alice Bob John Hello Bob, how are you? How about you John? I am good thanks! I am good thanks! Bob thinks a long long time, so long that the text does not fit on a row. Checking with John... Yes... John, how are you? Alice Bob John

And this will produce a flow chart:

  • Change the type of figure to “graph”, and you can add the direction of the figure like “LR” or “RL”.
```mermaid
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
D --> E[(Cylinder)]
A --> F([Ellipse])
```
Link text
Square Rect
Circle
Round Rect
Rhombus
Cylinder
Ellipse
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值