From 30ac4a34d1b8944e13fd1fc6fc4ae10825c10108 Mon Sep 17 00:00:00 2001 From: crossdark Date: Sat, 5 Oct 2024 13:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20CrossDown/Core.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown/Core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CrossDown/Core.py b/CrossDown/Core.py index 42d585d..fab0618 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -119,7 +119,7 @@ class Basic(Extension): r'\[(.*?)]\^\((.*?)\)', outer_tag='ruby', inner_tag='rt'), 'up', 0 ) # [在文本的正上方添加一行小文本]^(主要用于标拼音) md.inlinePatterns.register(ID( - r'\[(.*?)]-\((.*?)\)', tag='ruby', property='rt'), 'hide', 0 + r'\[(.*?)]-\((.*?)\)', tag='span', property='title'), 'hide', 0 ) # [在指定的文本里面隐藏一段文本]-(只有鼠标放在上面才会显示隐藏文本)