Merge pull request #87 from Okabe-Rintarou-0/fix-markdown-display

正确显示多行输入的 markdown #84
这个提交包含在:
binary-husky
2023-03-29 19:32:19 +08:00
提交者 GitHub
当前提交 8849095776

查看文件

@@ -107,8 +107,8 @@ def text_divide_paragraph(text):
# wtf input
lines = text.split("\n")
for i, line in enumerate(lines):
if i!=0: lines[i] = "<p>"+lines[i].replace(" ", "&nbsp;")+"</p>"
text = "".join(lines)
lines[i] = "<p>"+lines[i].replace(" ", "&nbsp;")+"</p>"
text = "\n".join(lines)
return text
def markdown_convertion(txt):