forked from CrossDark/CrossDown
Update CrossDown.py
更新了段落处理
This commit is contained in:
parent
811b2f451a
commit
e5cae2491f
@ -176,6 +176,7 @@ class CodeBlock:
|
||||
class Basic:
|
||||
@staticmethod
|
||||
def paragraph(text: str):
|
||||
text = '\n'.join(['-' + line + '-' for line in original_string.splitlines()])
|
||||
return re.sub(r'(<.+?>.*?<.+?>)\n', r'<p>\1</p>\n', text)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user