From ca2d97daf617c4a42f9b2f9f19ca8866f7c8e17a Mon Sep 17 00:00:00 2001 From: crossdark Date: Tue, 15 Oct 2024 19:21:26 +0800 Subject: [PATCH] =?UTF-8?q?1.9.3=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown/__init__.py | 31 ++++++++++++------------------- README.html | 11 ++++------- run.py | 3 +-- 3 files changed, 17 insertions(+), 28 deletions(-) diff --git a/CrossDown/__init__.py b/CrossDown/__init__.py index 168f44d..51f3d62 100644 --- a/CrossDown/__init__.py +++ b/CrossDown/__init__.py @@ -6,7 +6,6 @@ __all__ = [ 'main', # 主函数 'indent', # 添加空格 'HEAD', # - 'BODY', # ] __version__ = '0.11.2' __author__ = 'CrossDark' @@ -15,28 +14,22 @@ __source__ = 'https://crossdark.net/' __license__ = """MIT""" -HEAD = ( - '', # 渲染latex +HEAD = { + ('latex', 'js'): '', # mermaid - '', - '', + ('mermaid', 'js'): '', + ('mermaid', 'init'): '', - '', # 代码高亮css + ('code-highlight', 'css'): '', # 代码高亮css - '' -) - -BODY = ( - '', -) + ('block', 'css'): """""" +} def indent(input_: Union[str, List, Tuple], indent_spaces: int = 4) -> str: diff --git a/README.html b/README.html index 10f9204..d72c340 100644 --- a/README.html +++ b/README.html @@ -6,20 +6,17 @@ UTF-8编码示例 - + -