pyMarkdown 速记¶
约 776 个字 • 142 行代码 预计阅读时间 6 分钟
这是一个pyMarkdown速查表
markdown基本语法¶
下面是一些常用的markdown操作记录。详细内容请点击 Markdown 基本语法
Text can be deleted and replacement text added.
This can also becombined into onea single operation.
Highlighting is also possible and comments can be added inline.
A
引用内容
单行代码
[](超链接地址)
{style="zoom: 75%;"}

| 表头1 | 表头2 | 表头3 |
| :--- | :---: | -----:|
| 单元格 <br> 换行 | 单元格2222222 | 单元格333333 |
| `左对齐` | **居中** | 右对齐 |
表头1 | 表头2 | 表头3 |
---|---|---|
单元格 换行 |
单元格2222222 | 单元格333333 |
左对齐 |
居中 | 右对齐 |
Here's a simple footnote.1
markdown-extensions¶
display basic usage of markdown in python
details click here
关于 Reference,demo 取自官方文档
缩写¶
The HTML specification is maintained by the W3C.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
Example:The HTML specification is maintained by the W3C.
标题tag¶
Example:跳转到基本语法部分
可能出现单点无效的情况,需要再次单击
段落缩进¶
- dixi
-
- dixiLOG
- a magic bolg
- what c i say?
amazing!
高亮块¶
可能是使用最多的部分
info
这里是info块
success
这里是success块
tip
这里是tip块
quote
这里是quote块
note
这里是note块
abstract
这里是abstract块
question
这里是question块
example
这里是example块
warning
这里是warning块
failure
这里是failure块
bug
这里是bug块
danger
这里是danger块
折叠与分栏¶
danger
这里是danger块
danger
这里是danger块
目录生成¶
```text title="就一行"
[TOC]
```
渲染结果
注释¶
```text title="一般注释"
Lorem ipsum dolor sit amet, 是时(1) consectetur adipiscing elit.
{ .annotate }
1. :man_raising_hand: 我`是`**注**^^释^^
```
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
我是
注释
```text title="套娃注释"
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
{ .annotate }
1. :man_raising_hand: I'm an annotation! (1)
{ .annotate }
1. :woman_raising_hand: I'm an annotation as well!
```
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
-
I'm an annotation! (1)
I'm an annotation as well!
按钮¶
[icon search :material-file-find:](https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#search){ .md-button }
Icon 和 Emojis
图 diagrams¶
基于 mermaid 库,支持流程图、时序图、状态机、类图等
详细语法参见开发文档
``` mermaid
graph LR
A[Start] --> B{Error?};
B -->|Yes| C[Hmm...];
C --> D[Debug];
D --> B;
B ---->|No| E[Yay!];
```
graph LR
A[Start] --> B{Error?};
B -->|Yes| C[Hmm...];
C --> D[Debug];
D --> B;
B ---->|No| E[Yay!];
``` mermaid
sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
``` mermaid
stateDiagram-v2
state fork_state <<fork>>
[*] --> fork_state
fork_state --> State2
fork_state --> State3
state join_state <<join>>
State2 --> join_state
State3 --> join_state
join_state --> State4
State4 --> [*]
```
stateDiagram-v2
state fork_state <<fork>>
[*] --> fork_state
fork_state --> State2
fork_state --> State3
state join_state <<join>>
State2 --> join_state
State3 --> join_state
join_state --> State4
State4 --> [*]
``` mermaid
classDiagram
Person <|-- Student
Person <|-- Professor
Person : +String name
Person : +String phoneNumber
Person : +String emailAddress
Person: +purchaseParkingPass()
Address "1" <-- "0..1" Person:lives at
class Student{
+int studentNumber
+int averageMark
+isEligibleToEnrol()
+getSeminarsTaken()
}
class Professor{
+int salary
}
class Address{
+String street
+String city
+String state
+int postalCode
+String country
-validate()
+outputAsLabel()
}
```
classDiagram
Person <|-- Student
Person <|-- Professor
Person : +String name
Person : +String phoneNumber
Person : +String emailAddress
Person: +purchaseParkingPass()
Address "1" <-- "0..1" Person:lives at
class Student{
+int studentNumber
+int averageMark
+isEligibleToEnrol()
+getSeminarsTaken()
}
class Professor{
+int salary
}
class Address{
+String street
+String city
+String state
+int postalCode
+String country
-validate()
+outputAsLabel()
}
Grid¶
<div class="grid cards" markdown>
- :material-clock-fast:{ .lg .middle } **Set up in 5 minutes**
---
Install [`mkdocs-material`](#) with [`pip`](#) and get up
and running in minutes
[:octicons-arrow-right-24: Getting started](#)
- :fontawesome-brands-markdown:{ .lg .middle } **It's just Markdown**
---
Focus on your content and generate a responsive and searchable static site
[:octicons-arrow-right-24: Reference](#)
- :material-format-font:{ .lg .middle } **Made to measure**
---
Change the colors, fonts, language, icons, logo and more with a few lines
[:octicons-arrow-right-24: Customization](#)
- :material-scale-balance:{ .lg .middle } **Open Source, MIT**
---
Material for MkDocs is licensed under MIT and available on [GitHub]
[:octicons-arrow-right-24: License](#)
</div>
-
Set up in 5 minutes
Install
mkdocs-material
withpip
and get up and running in minutes -
It's just Markdown
Focus on your content and generate a responsive and searchable static site
-
Made to measure
Change the colors, fonts, language, icons, logo and more with a few lines
-
Open Source, MIT
Material for MkDocs is licensed under MIT and available on [GitHub]
公式¶
simpleTex 扫描复制粘贴即可
-
这是你的脚注🤣 ↩