diff --git a/CrossDown/Core.py b/CrossDown/Core.py index 6636631..b267f6e 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -267,17 +267,17 @@ class Basic(Extension): # TODO InlineProcessor 不能渲染一行中两个以 def extendMarkdown(self, md): md.registerExtension(self) # 注册扩展 - md.inlinePatterns.register(Simple(r'~~(.*?)~~', tag='s'), 'strikethrough', 1) # ~~删除线~~ - md.inlinePatterns.register(Simple(r'~(.*?)~', tag='u'), 'underline', 2) # ~下划线~ - md.inlinePatterns.register(Simple(r'==(.*?)==', tag='mark'), 'high_light', 3) # ==高亮== + md.inlinePatterns.register(Simple(r'~~(.*?)~~', tag='s'), 'strikethrough', 176) # ~~删除线~~ + md.inlinePatterns.register(Simple(r'~(.*?)~', tag='u'), 'underline', 177) # ~下划线~ + md.inlinePatterns.register(Simple(r'==(.*?)==', tag='mark'), 'high_light', 178) # ==高亮== md.inlinePatterns.register(Nest( - r'\[(.*?)]\^\((.*?)\)', outer_tag='ruby', inner_tag='rt'), 'up', 4 + r'\[(.*?)]\^\((.*?)\)', outer_tag='ruby', inner_tag='rt'), 'up', 179 ) # [在文本的正上方添加一行小文本]^(主要用于标拼音) md.inlinePatterns.register(ID( - r'\[(.*?)]-\((.*?)\)', tag='span', property_='title'), 'hide', 5 + r'\[(.*?)]-\((.*?)\)', tag='span', property_='title'), 'hide', 180 ) # [在指定的文本里面隐藏一段文本]-(只有鼠标放在上面才会显示隐藏文本) - md.inlinePatterns.register(Emoji(r':(.+?):'), 'emoji', 6) # 将emoji短代码转换为emoji字符 - md.parser.blockprocessors.register(Syllabus(md.parser), 'syllabus', 11) # 渲染提纲 + md.inlinePatterns.register(Emoji(r':(.+?):'), 'emoji', 181) # 将emoji短代码转换为emoji字符 + md.parser.blockprocessors.register(Syllabus(md.parser), 'syllabus', 182) # 渲染提纲 class Box(Extension): diff --git a/README.html b/README.html index 857bf82..473a2a9 100644 --- a/README.html +++ b/README.html @@ -252,7 +252,7 @@ -

引文内添加klzzwxh:0039klzzwxh:0040下划线删除线高亮

+

引文内添加斜体粗体下划线删除线高亮

7 提纲

7.1 提纲号