diff --git a/CrossDown.py b/CrossDown.py index 81c5063..94ae379 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -81,6 +81,9 @@ class Style: """ self.text = re.sub(r'\[(.*?)]-\((.*?)\)', r'\1', self.text) + def split_line(self): + self.text = re.sub(r'([*_-]){3}\n', r'
{code}
'
elif head in ('shell', 'python'):
self.codes[index] = f'{re.sub(f"({head})", "", code)}
'
+ elif head in ('mermaid',):
+ self.codes[index] = f'\(\1\)
', code) else: # 是突出块 @@ -373,9 +379,13 @@ if __name__ == '__main__': color: white; /* 白色文字 */ }} + - + + {add_indent_to_string(cd, 4)}