Markdown replacements

main
Bob Mottram 2022-06-27 11:41:52 +01:00
parent d3b1b5acda
commit e65196a897
1 changed files with 6 additions and 6 deletions

View File

@ -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)