Skip to content

Commit

Permalink
Merge pull request #1 from look/fix-config-option
Browse files Browse the repository at this point in the history
Update config option to new value
  • Loading branch information
arokettu authored May 23, 2017
2 parents bf211bd + 3372600 commit bcbc07c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commonmarker-rouge.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.0.0'

spec.add_dependency 'commonmarker', '> 0.8.0', '< 1.0'
spec.add_dependency 'commonmarker', '>= 0.14.5', '< 1.0'
spec.add_dependency 'rouge', '~> 1.10'

spec.add_development_dependency 'bundler', '~> 1.11'
Expand Down
4 changes: 2 additions & 2 deletions lib/commonmarker/rouge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ module CommonMarker
module Rouge
module_function

def render_doc(text, cmark_options = :default, **highmark_options)
def render_doc(text, cmark_options = :DEFAULT, **highmark_options)
cmark = highmark_options[:cmark_class] || ::CommonMarker

ast = cmark.render_doc(text, cmark_options)
process_ast(ast, highmark_options)
ast
end

def render_html(text, cmark_options = :default)
def render_html(text, cmark_options = :DEFAULT)
render_doc(text, cmark_options).to_html
end

Expand Down

0 comments on commit bcbc07c

Please sign in to comment.