|
@ -170,7 +170,7 @@ def escape_accidental_ordered_lists(markdown: str) -> str: |
|
|
def postprocess_markdown_html(html: str) -> str: |
|
|
def postprocess_markdown_html(html: str) -> str: |
|
|
"""Apply post-processing to HTML generated by markdown parser.""" |
|
|
"""Apply post-processing to HTML generated by markdown parser.""" |
|
|
# list of tag names to exclude from linkification |
|
|
# list of tag names to exclude from linkification |
|
|
linkify_skipped_tags = ["pre"] |
|
|
|
|
|
|
|
|
linkify_skipped_tags = ["code", "pre"] |
|
|
|
|
|
|
|
|
# search for text that looks like urls and convert to actual links |
|
|
# search for text that looks like urls and convert to actual links |
|
|
html = bleach.linkify( |
|
|
html = bleach.linkify( |
|
|