Merge pull request #87 from Okabe-Rintarou-0/fix-markdown-display
正确显示多行输入的 markdown #84
This commit is contained in:
commit
6ca28fbff2
@ -107,8 +107,8 @@ def text_divide_paragraph(text):
|
|||||||
# wtf input
|
# wtf input
|
||||||
lines = text.split("\n")
|
lines = text.split("\n")
|
||||||
for i, line in enumerate(lines):
|
for i, line in enumerate(lines):
|
||||||
if i!=0: lines[i] = "<p>"+lines[i].replace(" ", " ")+"</p>"
|
lines[i] = "<p>"+lines[i].replace(" ", " ")+"</p>"
|
||||||
text = "".join(lines)
|
text = "\n".join(lines)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def markdown_convertion(txt):
|
def markdown_convertion(txt):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user