mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24: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)
|
||||||
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
|
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
|
||||||
in_blockquote = True
|
in_blockquote = True
|
||||||
result.append(line)
|
result.append(line.strip())
|
||||||
else:
|
else:
|
||||||
result.append(line[-1])
|
result.append(line[1:].strip())
|
||||||
else:
|
else:
|
||||||
if in_blockquote:
|
if in_blockquote:
|
||||||
line = CLOSING_TAG.format("blockquote") + line
|
line = CLOSING_TAG.format("blockquote") + line
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue