more dokuwiki fixes
This commit is contained in:
@@ -29,7 +29,7 @@ SECRET_KEY = os.getenv("SECRET_KEY", "development key")
|
||||
USERNAME = os.getenv("ADMIN_USER", "admin")
|
||||
PASSWORD = os.getenv("ADMIN_PASSWD", "default")
|
||||
MARKDOWN_STYLE = os.getenv("MARKDOWN_STYLE", "markdown")
|
||||
URLFINDER = re.compile("((news|telnet|nttp|file|http|ftp|https)://[^ ]+)")
|
||||
URLFINDER = re.compile("((news|telnet|nttp|file|http|ftp|https)://[^ <]+)")
|
||||
URLPARSER = re.compile(r"(\[)([^\]]+)(\])\(([^\)]+)\)")
|
||||
BOLDFINDER = re.compile(r"\*([^\*]+)\*")
|
||||
CODEFINDER = re.compile(r"\`([^\`]+)\`")
|
||||
@@ -145,9 +145,9 @@ def urlify(s):
|
||||
|
||||
def checkbox_add(item):
|
||||
if MARKDOWN_STYLE == "markdown":
|
||||
return f"[ ] {item}" + "\n"
|
||||
return "\n" + f"[ ] {item}"
|
||||
if MARKDOWN_STYLE == "dokuwiki":
|
||||
return f"- <todo>{item}</todo>" + "\n"
|
||||
return "\n" + f"- <todo>{item}</todo>"
|
||||
|
||||
|
||||
def untick(item):
|
||||
|
||||
Reference in New Issue
Block a user