From 05a05ceb7ae4c69be0c59e832c652088664f6bd0 Mon Sep 17 00:00:00 2001 From: crossdark Date: Thu, 26 Sep 2024 19:08:17 +0800 Subject: [PATCH] =?UTF-8?q?0.10.1=20=E6=B7=BB=E5=8A=A0=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E5=92=8C=E5=85=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown.py | 2 ++ README.html | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++- README.md | 11 ++++++ 3 files changed, 107 insertions(+), 1 deletion(-) diff --git a/CrossDown.py b/CrossDown.py index e554c54..c519f28 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -256,6 +256,8 @@ def body(text: str) -> Tuple[str, Dict[str, str]]: 'markdown.extensions.extra', # 扩展语法 'markdown.extensions.codehilite', # 语法高亮拓展 'markdown.extensions.toc', # 自动生成目录 + 'markdown.extensions.admonition', # 警告扩展 + 'markdown.extensions.meta', # 元数据 ]) # 渲染标准markdown return text, values diff --git a/README.html b/README.html index f0d153c..0da1baa 100644 --- a/README.html +++ b/README.html @@ -23,7 +23,96 @@ -

CrossDown

+
+ +
+
+

title: "Markdown文档标题"
+ author: "作者姓名"
+ date: "2024-09-26"

+
+

CrossDown

自制的markdown,添加了一些自定义的语法 效果请见README.html

1 基本语法

@@ -173,5 +262,9 @@ +

10 警告

+
+

这是一条警告

+
diff --git a/README.md b/README.md index 10c8016..0109376 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +[TOC] + +--- +title: "Markdown文档标题" +author: "作者姓名" +date: "2024-09-26" +--- + # CrossDown 自制的markdown,添加了一些自定义的语法 效果请见[README.html](https://github.com/CrossDark/CrossDown/blob/main/README.html) @@ -198,3 +206,6 @@ graph LR |:----:|:----:|:----:| | 单元格1 | 单元格2 | 单元格3 | | 单元格4 | 单元格5 | 单元格6 | + +10 警告 +!!! 这是一条警告