Custom menu

This commit is contained in:
2022-07-15 16:48:18 +02:00
parent 68a639b8c0
commit aa08327f28
3 changed files with 42 additions and 22 deletions

View File

@ -12,3 +12,11 @@ try:
from markdown import markdown
except ModuleNotFoundError:
from Libs.markdown import markdown
def MarkdownHTMLEscape(Str, Extensions=()): # WIP
Text = ''
for i,e in enumerate(Str):
if ('mdx_subscript' or 'markdown_del_ins') in Extensions and e == '~':
e = '~'
Text += e
return Text