Merge pull request #87 from Okabe-Rintarou-0/fix-markdown-display
正确显示多行输入的 markdown #84
This commit is contained in:
commit
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(" ", " ")+"</p>"
|
||||
text = "".join(lines)
|
||||
lines[i] = "<p>"+lines[i].replace(" ", " ")+"</p>"
|
||||
text = "\n".join(lines)
|
||||
return text
|
||||
|
||||
def markdown_convertion(txt):
|
||||
|
Loading…
x
Reference in New Issue
Block a user