mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Pyrofork: fix blockquote parser
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
08f0214252
commit
6e97b58566
1 changed files with 2 additions and 2 deletions
|
|
@ -74,9 +74,9 @@ 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)
|
||||
result.append(line.strip())
|
||||
else:
|
||||
result.append(line[-1])
|
||||
result.append(line[1:].strip())
|
||||
else:
|
||||
if in_blockquote:
|
||||
line = CLOSING_TAG.format("blockquote") + line
|
||||
|
|
|
|||
Loading…
Reference in a new issue