-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from RyoJerryYu/feat/add-obsidian-rich-feature
Feat/add obsidian rich feature
- Loading branch information
Showing
35 changed files
with
1,652 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
--- | ||
title: 博客语法渲染测试 | ||
tags: | ||
- Blog | ||
- Nextjs | ||
--- | ||
|
||
# 一级标题 | ||
|
||
## 二级标题 | ||
|
||
### 三级标题 | ||
|
||
#### 四级标题 | ||
|
||
##### 五级标题 | ||
|
||
###### 六级标题 | ||
|
||
**加粗** | ||
|
||
*斜体* | ||
|
||
***加粗斜体*** | ||
|
||
~~删除线~~ | ||
|
||
> 引用 | ||
# 其他 MD 语法 | ||
|
||
## 代码块 | ||
|
||
`行内代码` | ||
|
||
代码块高亮: | ||
|
||
```python | ||
# 代码块 | ||
def func_echo(s: str): | ||
print(s) | ||
|
||
|
||
class HelloPrinter: | ||
printer: Callable[[str]] | ||
|
||
def __init__(self, printer: Callable[[str]]): | ||
self.printer = printer | ||
|
||
def call(self, s: str): | ||
self.printer(s) | ||
|
||
|
||
p = HelloPrinter(func_echo) | ||
p.call("hello world!") | ||
``` | ||
|
||
大围栏 | ||
|
||
````markdown | ||
``` | ||
def func_echo(s: str): | ||
print(s) | ||
``` | ||
```` | ||
|
||
## 列表 | ||
|
||
- 无序列表 | ||
- 无序列表 | ||
- 无序列表 | ||
- 无序列表 | ||
|
||
1. 有序列表 | ||
2. 有序列表 | ||
3. 有序列表 | ||
|
||
## 链接 | ||
|
||
[链接](https://blog.ryo-okami.xyz) | ||
|
||
[站内链接](/ideas/blog-syntax) | ||
|
||
## 图片 | ||
|
||
图片: | ||
|
||
![图片](https://blog.ryo-okami.xyz/content/articles/2022-07-31-why-homogeneous/OnOneLineWillStillOneLine_ManimCE_v0.16.0.post0.gif) | ||
|
||
站内图片: | ||
|
||
![站内图片](/content/articles/2022-07-31-why-homogeneous/OnOneLineWillStillOneLine_ManimCE_v0.16.0.post0.gif) | ||
|
||
## 表格 | ||
|
||
| 表头 | 表头 | 表头 | | ||
| ---- | ---- | ---- | | ||
| 单元 | 单元 | 单元 | | ||
| 单元 | 单元 | 单元 | | ||
|
||
## 脚注 | ||
|
||
下标[^1] | ||
|
||
[^1]: 注释 | ||
|
||
# 插件 | ||
|
||
## Katex | ||
|
||
行间公式 | ||
|
||
$$ | ||
\begin{aligned} | ||
\dot{x} & = \sigma(y-x) \\ | ||
\dot{y} & = \rho x - y - xz \\ | ||
\dot{z} & = -\beta z + xy | ||
\end{aligned} | ||
$$ | ||
|
||
行内公式 $E=mc^2$ | ||
|
||
## Mermaid | ||
|
||
mermaid 流程图 | ||
|
||
```mermaid | ||
graph LR | ||
A[方形] --> B(圆角) | ||
B --> C{条件} | ||
C -->|a=1| D[结果1] | ||
C -->|a=2| E[结果2] | ||
C -->|a=3| F[结果3] | ||
``` | ||
|
||
mermaid 时序图 | ||
|
||
```mermaid | ||
sequenceDiagram | ||
participant Alice | ||
participant Bob | ||
Alice->>John: Hello John, how are you? | ||
loop Healthcheck | ||
John->>John: Fight against hypochondria | ||
end | ||
Note right of John: Rational thoughts <br/>prevail... | ||
John-->>Alice: Great! | ||
John->>Bob: How about you? | ||
Bob-->>John: Jolly good! | ||
``` | ||
|
||
## Heading 引用 | ||
|
||
点击能够跳转: | ||
|
||
[文章内标题引用](#一级标题) | ||
|
||
[跨文章标题引用](/ideas/blog-syntax#一级标题) | ||
|
||
# Obsidian 短引用 | ||
|
||
## 图片 | ||
|
||
短引用图片,纯文件名 | ||
|
||
![[test-img-show-image.png]] | ||
|
||
短引用图片,带注释 | ||
|
||
![[test-img-show-image.png|这是一张图片]] | ||
|
||
短引用图片,带路径 | ||
|
||
![[blog-syntax/test-img-show-image.png]] | ||
|
||
短引用图片,带路径和注释 | ||
|
||
![[blog-syntax/test-img-show-image.png|这是一张图片]] | ||
|
||
短引用图片,全路径 | ||
|
||
![[/content/ideas/blog-syntax/test-img-show-image.png]] | ||
|
||
## Excalidraw | ||
|
||
短引用 Excalidraw | ||
|
||
![[Drawing 2024-04-13 17.33.27.excalidraw]] | ||
|
||
|
Oops, something went wrong.