Skip to content

Commit

Permalink
Tiny fixes for the README file [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
robin850 committed Sep 4, 2016
1 parent 98c47e4 commit e3a1d0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Starting with Redcarpet 3.0, the minimum required Ruby version is 1.9.2 (or Rubi

$ [sudo] gem install redcarpet

If you need to use it with Ruby 1.8.7, you will need to stick with 2.3.0:
If you need to use it with Ruby 1.8.7, you will have to stick with 2.3.0:

$ [sudo] gem install redcarpet -v 2.3.0

Expand Down Expand Up @@ -189,10 +189,13 @@ Redcarpet also includes a plaintext renderer, `Redcarpet::Render::StripDown`, th
strips out all the formatting:

~~~~ ruby
require 'redcarpet'
require 'redcarpet/render_strip'

markdown = Redcarpet::Markdown.new(Redcarpet::Render::StripDown)
plaintext = markdown.render("**This** _is_ an [example](http://example.org/).")
# => "This is an example (http://example.org/).\n"

markdown.render("**This** _is_ an [example](http://example.org/).")
# => "This is an example (http://example.org/)."
~~~~


Expand Down

0 comments on commit e3a1d0b

Please sign in to comment.