vmg / redcarpet

The safe Markdown parser, reloaded.
MIT License
4.99k stars 527 forks source link

:no_intra_emphasis in russian text #377

Open ilnuro opened 10 years ago

ilnuro commented 10 years ago

Hello, I have problems.

markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, no_intra_emphasis: true) markdown.render('foo_bar_baz') => "<p>foo_bar_baz</p>\n"

It's works nice. But rendering russian text add <em> tags

markdown.render('фыв_фыв_фыв') => "<p>фыв<em>фыв</em>фыв</p>\n"

What i can do?

svbergerem commented 6 years ago

Here is another example, this time in Armenian:

require "redcarpet"
=> true
parser = Redcarpet::Markdown.new(Redcarpet::Render::HTML, no_intra_emphasis: true)
=> #<Redcarpet::Markdown:0x000055f973b41500 @renderer=#<Redcarpet::Render::HTML:0x000055f973b415a0 @options={:no_intra_emphasis=>true}>>
parser.render("թեստ_թեստ_թեստ")
=> "<p>թեստ<em>թեստ</em>թեստ</p>\n"