Skip to content

Disabling middle-word-em breaks (*em*) #641

@justanotheranonymoususer

Description

Describe the bug
See example below

To Reproduce

import markdown2

markdown_text = """
**Strong** (*em*)
"""

html_output = markdown2.markdown(markdown_text, extras={
    'middle-word-em': {'allowed': False},
})

print(html_output)

Expected behavior

Expected:

<p><strong>Strong</strong> (<em>em</em>)</p>

Actual:

<p><strong>Strong</strong> (*em*)</p>

Debug info
Version of library being used: 8d50892

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions