mirror of https://gitlab.com/bashrc2/epicyon
Remove trailing newline from blockquote
parent
b07bc917f4
commit
1181ad5858
|
@ -94,6 +94,9 @@ def _markdownReplaceQuotes(markdown: str) -> str:
|
|||
result += lineStr
|
||||
prevQuoteLine = lineStr
|
||||
|
||||
if '</blockquote>\n' in result:
|
||||
result = result.replace('</blockquote>\n', '</blockquote>')
|
||||
|
||||
if result.endswith('\n') and \
|
||||
not markdown.endswith('\n'):
|
||||
result = result[:len(result) - 1]
|
||||
|
|
Loading…
Reference in New Issue