3.3.2 添加警告
Some checks failed
Publish to PyPI on main branch update / build_and_publish (push) Has been cancelled

This commit is contained in:
跨越晨昏 2024-11-08 19:20:21 +08:00
parent 1b22d1fc80
commit 5ab56b2e8b
4 changed files with 64 additions and 1 deletions

View File

@ -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(),

View File

@ -128,6 +128,14 @@
</ul>
</li>
<li><a href="#19">19 批评</a></li>
<li><a href="#20">20 警告</a><ul>
<li><a href="#20.1">20.1 告示</a></li>
<li><a href="#20.2">20.2 提示</a></li>
<li><a href="#20.3">20.3 着重</a></li>
<li><a href="#20.4">20.4 提醒</a></li>
<li><a href="#20.5">20.5 警告</a></li>
</ul>
</li>
</ul>
</div>
<h1 id="crossdown">CrossDown</h1>
@ -613,5 +621,31 @@
<li>test add</li>
</ul>
</ins>
<h1 id="20">20 警告</h1>
<h2 id="20.1">20.1 告示</h2>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>突出用户应考虑的信息</p>
</div>
<h2 id="20.2">20.2 提示</h2>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>帮助用户的可选信息</p>
</div>
<h2 id="20.3">20.3 着重</h2>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>Crucial information necessary for users to succeed.</p>
</div>
<h2 id="20.4">20.4 提醒</h2>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Critical content demanding immediate user attention due to potential risks.</p>
</div>
<h2 id="20.5">20.5 警告</h2>
<div class="admonition caution">
<p class="admonition-title">Caution</p>
<p>Negative potential consequences of an action.</p>
</div>
</body>
</html>

View File

@ -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.

View File

@ -2,7 +2,7 @@ import setuptools
from CrossDown import Meta
meta = Meta(3, 3, 1)
meta = Meta(3, 3, 2)
setuptools.setup(
name="CrossDown",