From 3cac20d7f724b93c0c914bb1913a09b6bb8e36e1 Mon Sep 17 00:00:00 2001 From: crossdark Date: Sat, 28 Sep 2024 12:49:37 +0800 Subject: [PATCH] =?UTF-8?q?0.11.0=20Emoji=E6=9C=89=E7=82=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown.py | 51 ++++++++++++++++++++++++++++++++----------------- README.html | 23 ++++++++++++++++------ README.md | 7 +++++++ requirement.txt | 4 +++- 4 files changed, 60 insertions(+), 25 deletions(-) diff --git a/CrossDown.py b/CrossDown.py index c519f28..4b083b7 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -10,6 +10,35 @@ except ModuleNotFoundError: EXTRA_ABLE = False +HEAD = """ + + + + + + +""" + + +BODY = """ + + +""" + + class Style: """ 渲染字体样式 @@ -226,7 +255,7 @@ class Basic: return re.sub('// .*?\n', '\n', text) -def add_indent_to_string(input_string: str, indent_spaces: int = 4): +def indent(input_string: str, indent_spaces: int = 4): """ 给字符串中的每一行前面加上缩进。 :param input_string: 原始字符串,可以包含多行。 @@ -284,26 +313,12 @@ if __name__ == '__main__': UTF-8编码示例 - - - - - - + {indent(HEAD)} - - {add_indent_to_string(cd, 4)} + {indent(BODY)} + {indent(cd, 4)} """) diff --git a/README.html b/README.html index 0da1baa..cbc6132 100644 --- a/README.html +++ b/README.html @@ -4,24 +4,31 @@ UTF-8编码示例 + + src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"> + - - + +

@@ -266,5 +274,8 @@

这是一条警告

+

11 Emoji

+

:heart:

+

:smile:

diff --git a/README.md b/README.md index 0109376..0d2575f 100644 --- a/README.md +++ b/README.md @@ -208,4 +208,11 @@ graph LR | 单元格4 | 单元格5 | 单元格6 | 10 警告 + !!! 这是一条警告 + +11 Emoji + +:heart: + +:smile: diff --git a/requirement.txt b/requirement.txt index 6f3c063..cb36c56 100644 --- a/requirement.txt +++ b/requirement.txt @@ -1 +1,3 @@ -markdown>=0 \ No newline at end of file +Markdown>=3.7 +matplotlib>=3.9.2 +numpy>=2.1.1 \ No newline at end of file