From 38910cbe8b8b2518e61c7de66bc266b41cdc6bb7 Mon Sep 17 00:00:00 2001 From: crossdark Date: Sun, 13 Oct 2024 14:38:11 +0800 Subject: [PATCH] =?UTF-8?q?1.7.6=20=E6=94=AF=E6=8C=81=E5=86=85=E9=83=A8?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown/Core.py | 11 +++-------- README.html | 5 ++++- README.md | 4 ++++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CrossDown/Core.py b/CrossDown/Core.py index 27638e4..e78d45a 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -1,4 +1,4 @@ -from markdown.extensions import Extension, extra, admonition, meta, sane_lists, toc +from markdown.extensions import Extension, extra, admonition, meta, sane_lists, toc, wikilinks from markdown.treeprocessors import Treeprocessor from markdown.inlinepatterns import Pattern as Pattern_ @@ -12,17 +12,12 @@ import xml import emoji Extensions = { - "Extra": extra.ExtraExtension(), - # "Smart Strong": "markdown.extensions.smart_strong", + "Extra": extra.ExtraExtension(), # 基本扩展 "Admonition": admonition.AdmonitionExtension(), - # "CodeHilite": "markdown.extensions.codehilite", - # "HeaderId": "markdown.extensions.headerid", "Meta-Data": meta.MetaExtension(), - # "New Line to Break": "markdown.extensions.nl2br", "Sane Lists": sane_lists.SaneListExtension(), - # "SmartyPants": "markdown.extensions.smarty", "Table of Contents": toc.TocExtension(), - # "WikiLinks": "markdown.extensions.wikilinks", + "WikiLinks": wikilinks.WikiLinkExtension(), } try: # 检测当前平台是否支持扩展语法 diff --git a/README.html b/README.html index 466e2cd..89bb46e 100644 --- a/README.html +++ b/README.html @@ -122,6 +122,7 @@
  • 14.4 怀疑
  • +
  • 15 内部链接
  • CrossDown

    @@ -221,7 +222,7 @@ -

    引文内添加klzzwxhklzzwxhklzzwxh:00390036klzzwxh:0037

    +

    引文内添加klzzwxhklzzwxhklzzwxh:00400037klzzwxh:0038

    7 提纲

    7.1 提纲号

    @@ -325,5 +326,7 @@

    这是一条怀疑

    +

    15 内部链接

    +

    Bracketed

    diff --git a/README.md b/README.md index 5ca927e..953424a 100644 --- a/README.md +++ b/README.md @@ -281,3 +281,7 @@ graph TD ,-, 这是一条怀疑 ,-, + +15 内部链接 + +[[Bracketed]]