diff --git a/CrossDown/Core.py b/CrossDown/Core.py index 760ac86..1945187 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -68,6 +68,7 @@ class PreProcess(Preprocessor): def run(self, lines: List[str]) -> List[str]: new_lines = [] for line in lines: # 逐行遍历 + print(line) for value in re.findall(r'\{\[(.+?)]}', line): # 找到变量 if value in self.variable: # 变量已定义 line = re.sub(fr'\{{\[{value}]}}', self.variable[value], line) # 替换变量为值 @@ -366,7 +367,7 @@ class Pre(Extension): :param md: 转换器 """ md.registerExtension(self) # 注册扩展 - md.preprocessors.register(PreProcess(self.variable), 'pre_process', 0) + md.preprocessors.register(PreProcess(self.variable), 'pre_process', 1000) class Basic(Extension): diff --git a/README.html b/README.html index 7dc9b05..784a1f5 100644 --- a/README.html +++ b/README.html @@ -187,6 +187,9 @@ - a - b - c + 强调值: + - a + - b
可以设置文段的字体为sans-serif
可以设置文段的字体为Helvetica
-可以设置文段的自定义字体为Courier New
+可以设置文段的自定义字体为小赖字体
可以设置文本的黄色外框