Last active
February 21, 2020 09:55
-
-
Save kaityo256/e2a25ac49784cddd0808302d3c1e020f to your computer and use it in GitHub Desktop.
A problem of Redcarpet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'redcarpet' | |
| require 'redcarpet/render/review' | |
| render = Redcarpet::Render::ReVIEW.new() | |
| mk = Redcarpet::Markdown.new(render) | |
| str1 = "$t_1$" | |
| str2 = "$t_1$ to $t_2$" | |
| puts "#{str1} is converted to " | |
| puts mk.render(str1) | |
| puts "#{str2} is converted to " | |
| puts mk.render(str2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.