mirror of https://gitlab.com/bashrc2/epicyon
Markdown replacements
parent
d3b1b5acda
commit
e65196a897
12
markdown.py
12
markdown.py
|
@ -33,12 +33,12 @@ def _markdown_emphasis_html(markdown: str) -> str:
|
|||
'_;': '</ul>;',
|
||||
'_,': '</ul>,',
|
||||
'_\n': '</ul>\n',
|
||||
' `': '<em>',
|
||||
'`.': '</em>',
|
||||
'`:': '</em>',
|
||||
'`;': '</em>',
|
||||
'`\n': '</em>',
|
||||
'` ': '</em>'
|
||||
' `': ' <em>',
|
||||
'`.': '</em>.',
|
||||
'`:': '</em>:',
|
||||
'`;': '</em>;',
|
||||
'`\n': '</em>\n',
|
||||
'` ': '</em> '
|
||||
}
|
||||
for md_str, html in replacements.items():
|
||||
markdown = markdown.replace(md_str, html)
|
||||
|
|
Loading…
Reference in New Issue