diff --git a/CrossDown/Core.py b/CrossDown/Core.py index f257fb8..bd6044e 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -38,6 +38,7 @@ from pymdownx.magiclink import MagiclinkExtension from pymdownx.pathconverter import PathConverterExtension import kbdextension +import markdown_gfm_admonition from .Define import Variable @@ -275,6 +276,7 @@ Extensions = { # 其它 'KBD': kbdextension.KbdExtension(), + 'GFM 警告': markdown_gfm_admonition.GfmAdmonitionExtension(), # 自定义 '基本风格': BasicExtension(), diff --git a/README.html b/README.html index 53d1d0c..ccd5d76 100644 --- a/README.html +++ b/README.html @@ -128,6 +128,14 @@
  • 19 批评
  • +
  • 20 警告 +
  • CrossDown

    @@ -613,5 +621,31 @@
  • test add
  • +

    20 警告

    +

    20.1 告示

    +
    +

    Note

    +

    突出用户应考虑的信息

    +
    +

    20.2 提示

    +
    +

    Tip

    +

    帮助用户的可选信息

    +
    +

    20.3 着重

    +
    +

    Important

    +

    Crucial information necessary for users to succeed.

    +
    +

    20.4 提醒

    +
    +

    Warning

    +

    Critical content demanding immediate user attention due to potential risks.

    +
    +

    20.5 警告

    +
    +

    Caution

    +

    Negative potential consequences of an action.

    +
    diff --git a/README.md b/README.md index 2467d6a..474c653 100644 --- a/README.md +++ b/README.md @@ -492,3 +492,30 @@ General block handling. * test add ++} + +20 警告 + +20.1 告示 + +> [!NOTE] +> 突出用户应考虑的信息 + +20.2 提示 + +> [!TIP] +> 帮助用户的可选信息 + +20.3 着重 + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +20.4 提醒 + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. + +20.5 警告 + +> [!CAUTION] +> Negative potential consequences of an action. diff --git a/setup.py b/setup.py index d6a6a75..859c4b8 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import setuptools from CrossDown import Meta -meta = Meta(3, 3, 1) +meta = Meta(3, 3, 2) setuptools.setup( name="CrossDown",