Skip to content

Avoid emphasis detection in the middle of a word, also no emphasis in the middle of strong #632

Description

@VelizarVESSELINOV

Describe the bug
Avoid emphasis detection in the middle of a word, also no emphasis in the middle of strong

To Reproduce

import markdown
import markdown2

text = "**A_1** through **A_2**"
print(markdown.markdown(text))
print(markdown2.markdown(text))
<p><strong>A_1</strong> through <strong>A_2</strong></p>
<p><strong>A<em>1</strong> through <strong>A</em>2</strong></p>

Expected behavior
like markdown:

<p><strong>A_1</strong> through <strong>A_2</strong></p>

Debug info
Version of library being used:

  • markdown: 3.8.2
  • markdown2: 2.5.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions