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

Problem mixing * and _ for emphasis text #717

Open
torce opened this issue Oct 15, 2021 · 0 comments
Open

Problem mixing * and _ for emphasis text #717

torce opened this issue Oct 15, 2021 · 0 comments

Comments

@torce
Copy link

torce commented Oct 15, 2021

Rendering *t_es_t* produces <p><em>t<em>es</em>t</em></p>\n.
The expected result is <p><em>t_es_t</em></p>\n, like github or kramdown does.
The same happens with the analogous case: _t*es*t_.

Script to reproduce the problem:

require 'redcarpet'
renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
renderer.render('*t_es_t*') # "<p><em>t<em>es</em>t</em></p>\n"
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

No branches or pull requests

1 participant