mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update Redcarpet to 3.1.2
This version fixes an API breakage between 3.0 and 3.1 ; the header method's arity should not have changed. [ci skip]
This commit is contained in:
parent
567aa5440e
commit
ad3628b311
3 changed files with 4 additions and 4 deletions
2
Gemfile
2
Gemfile
|
@ -25,7 +25,7 @@ gem 'uglifier', '>= 1.3.0', require: false
|
|||
|
||||
group :doc do
|
||||
gem 'sdoc', '~> 0.4.0'
|
||||
gem 'redcarpet', '~> 3.1.0', platforms: :ruby
|
||||
gem 'redcarpet', '~> 3.1.2', platforms: :ruby
|
||||
gem 'w3c_validators'
|
||||
gem 'kindlerb'
|
||||
end
|
||||
|
|
|
@ -24,11 +24,11 @@ begin
|
|||
require 'redcarpet'
|
||||
rescue LoadError
|
||||
# This can happen if doc:guides is executed in an application.
|
||||
$stderr.puts('Generating guides requires Redcarpet 3.1.0+.')
|
||||
$stderr.puts('Generating guides requires Redcarpet 3.1.2+.')
|
||||
$stderr.puts(<<ERROR) if bundler?
|
||||
Please add
|
||||
|
||||
gem 'redcarpet', '~> 3.1.0'
|
||||
gem 'redcarpet', '~> 3.1.2'
|
||||
|
||||
to the Gemfile, run
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ module RailsGuides
|
|||
HTML
|
||||
end
|
||||
|
||||
def header(text, header_level, anchor)
|
||||
def header(text, header_level)
|
||||
# Always increase the heading level by, so we can use h1, h2 heading in the document
|
||||
header_level += 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue