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]]