Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not render strong or em when text contains tag #582

Closed
wants to merge 1 commit into from

Conversation

formulahendry
Copy link

Marked will render strong or em with a wrong output in below situation. We should not render strong or em when text contains tag.

<table>
  <tr>
    <td>Te__st</td>
    <td>Strin__g</td>
  </tr>
  <tr>
    <td>Te _st</td>
    <td>Strin_ g</td>
  </tr>
</table>

@chjj
Copy link
Member

chjj commented May 8, 2015

This is trickier than it appears since the original markdown doesn't process any html as markdown. It's another question of whether to remain true to markdown or add more of our own dynamic behavior. The negative lookahead for a tag might work, but I want to keep marked from being an html parser. Open to argument here.

@joshbruce
Copy link
Member

Closing as stale, missing tests, and merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants