From 79051ed28038ae9f19ceabd765110322c52e3696 Mon Sep 17 00:00:00 2001 From: crossdark Date: Mon, 14 Oct 2024 19:43:20 +0800 Subject: [PATCH] =?UTF-8?q?1.9.1=20=E4=BB=A3=E7=A0=81=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E4=BF=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown/Core.py | 8 ++++---- README.html | 8 +++++++- README.md | 9 ++++++++- requirement.txt | 3 ++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/CrossDown/Core.py b/CrossDown/Core.py index 920714f..7301ec9 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -283,7 +283,7 @@ class Box(Extension): # 红框警告 md.inlinePatterns.register(ID( r'!{3}(.+?)!{3}', tag='div', property_='style', value='display: inline-block; border: 1px solid red;' - ), 'warning_in_line', 0) # 行内 + ), 'warning_in_line', 20) # 行内 md.parser.blockprocessors.register(BoxBlock( md.parser, r'^ *!{3} *\n', r'\n *!{3}\s*$', 'display: inline-block; border: 1px solid red;' ), 'warning_box', 175) # 块 @@ -291,7 +291,7 @@ class Box(Extension): # 黄框提醒 md.inlinePatterns.register(ID( r'!-!(.+?)!-!', tag='div', property_='style', value='display: inline-block; border: 1px solid yellow;' - ), 'reminding_in_line', 1) # 行内 + ), 'reminding_in_line', 21) # 行内 md.parser.blockprocessors.register(BoxBlock( md.parser, r'^ *!-! *\n', r'\n *!-!\s*$', 'display: inline-block; border: 1px solid yellow;' ), 'reminding_box', 176) # 块 @@ -299,7 +299,7 @@ class Box(Extension): # 绿框安心 md.inlinePatterns.register(ID( r',{3}(.+?),{3}', tag='div', property_='style', value='display: inline-block; border: 1px solid green;' - ), 'reminding_in_line', 2) # 行内 + ), 'reminding_in_line', 22) # 行内 md.parser.blockprocessors.register(BoxBlock( md.parser, r'^ *,{3} *\n', r'\n *,{3}\s*$', 'display: inline-block; border: 1px solid green;' ), 'reminding_box', 177) # 块 @@ -307,7 +307,7 @@ class Box(Extension): # 蓝框怀疑 md.inlinePatterns.register(ID( r',-,(.+?),{2}', tag='div', property_='style', value='display: inline-block; border: 1px solid blue;' - ), 'reminding_in_line', 3) # 行内 + ), 'reminding_in_line', 23) # 行内 md.parser.blockprocessors.register(BoxBlock( md.parser, r'^ *,-, *\n', r'\n *,-,\s*$', 'display: inline-block; border: 1px solid blue;' ), 'reminding_box', 178) # 块 diff --git a/README.html b/README.html index 97eb51c..527208b 100644 --- a/README.html +++ b/README.html @@ -85,6 +85,7 @@
  • 4.2.1 YAML
  • 4.2.2 Python
  • 4.2.3 Mermaid
  • +
  • 4.2.4 shell
  • @@ -196,7 +197,8 @@

    4.2.2 Python

    -
    print('CrossDown')
    +    
    def main():
    +        print('CrossDown')
         

    4.2.3 Mermaid

    @@ -207,6 +209,10 @@ C-->|结果2|E[结束2]
    +

    4.2.4 shell

    +
    cd ../..
    +    
    +

    5 转义

    \

    \a

    diff --git a/README.md b/README.md index f549196..ae56c45 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,8 @@ B: 4.2.2 Python ```python -print('CrossDown') +def main(): + print('CrossDown') ``` 4.2.3 Mermaid @@ -144,6 +145,12 @@ graph TD C-->|结果2|E[结束2] ``` +4.2.4 shell + +```shell +cd ../.. +``` + 5 转义 \\ diff --git a/requirement.txt b/requirement.txt index cb36c56..c23cca1 100644 --- a/requirement.txt +++ b/requirement.txt @@ -1,3 +1,4 @@ Markdown>=3.7 matplotlib>=3.9.2 -numpy>=2.1.1 \ No newline at end of file +numpy>=2.1.1 +pygments>=2.18.0 \ No newline at end of file