diff --git a/CrossDown.py b/CrossDown.py index c471501..741c9f6 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -176,8 +176,8 @@ 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'

\1

\n', text) + text = '\n'.join([f'

{line}

' for line in original_string.splitlines()]) + return re.sub(r'

(<.+?>.*?<.+?>)

\n', r'\1\n', text) def add_indent_to_string(input_string: str, indent_spaces: int = 4):