Open ilnuro opened 10 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"
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>
tagsmarkdown.render('фыв_фыв_фыв')
=> "<p>фыв<em>фыв</em>фыв</p>\n"
What i can do?