{token} | {prob} |
. + if re.search(r'(\d+\.?)$', result): + delete_str = '|delete|' + + if not result.endswith('.'): + result += '.' + + result = re.sub(r'(\d+\.)$', r'\g<1> ' + delete_str, result) + + html = markdown.markdown(result, extensions=['fenced_code', 'tables']) + pos = html.rfind(delete_str) + if pos > -1: + html = html[:pos] + html[pos + len(delete_str):] + else: + html = markdown.markdown(result, extensions=['fenced_code', 'tables']) + + return html + + +def generate_basic_html(string): + string = convert_to_markdown(string) + string = f'