mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Pyrofork: parser: markdown: blockquote: Don't strip the message text
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
834788db94
commit
f17c0a3354
1 changed files with 3 additions and 3 deletions
|
|
@ -74,14 +74,14 @@ class Markdown:
|
|||
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
|
||||
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
|
||||
in_blockquote = True
|
||||
result.append(line.strip())
|
||||
result.append(line)
|
||||
else:
|
||||
result.append(line[-1].strip())
|
||||
result.append(line[-1])
|
||||
else:
|
||||
if in_blockquote:
|
||||
line = CLOSING_TAG.format("blockquote") + line
|
||||
in_blockquote = False
|
||||
result.append(line.strip())
|
||||
result.append(line)
|
||||
|
||||
if in_blockquote:
|
||||
line = result[len(result)-1] + CLOSING_TAG.format("blockquote")
|
||||
|
|
|
|||
Loading…
Reference in a new issue