mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Only allow either "markdown" or "html" as text style parse mode
This commit is contained in:
parent
f05e79e0f4
commit
197cf5506c
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class Parser:
|
|||
if mode == "":
|
||||
return self.markdown.parse(text)
|
||||
|
||||
if mode in ["markdown", "md"]:
|
||||
if mode in "markdown":
|
||||
return self.markdown.parse(text, True)
|
||||
|
||||
if mode == "html":
|
||||
|
|
|
|||
Loading…
Reference in a new issue