Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Apr 18, 2024
1 parent 04902a3 commit 8f910bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/madness/rendering/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Rendering
class Handler
HANDLERS = {
redcarpet: Redcarpet,
pandoc: Pandoc,
pandoc: Pandoc,
}

attr_reader :selector
Expand All @@ -20,4 +20,4 @@ def handler = @handler ||= handler_class.new
def handler_class = @handler_class ||= HANDLERS[selector] || HANDLERS.values.first
end
end
end
end
4 changes: 2 additions & 2 deletions lib/madness/rendering/pandoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def render(text)
def options
@options ||= config.highlighter ? [] : :no_highlight
end
end
end
end
end
end
5 changes: 2 additions & 3 deletions lib/madness/rendering/redcarpet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def handler
end

def options
@redcarpet_options ||= {
@options ||= {
no_intra_emphasis: true,
autolink: true,
tables: true,
Expand All @@ -38,7 +38,6 @@ def renderer
def handler_class
config.highlighter ? HighlightRenderer : ::Redcarpet::Render::HTML
end

end
end
end
end
2 changes: 1 addition & 1 deletion madness.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Gem::Specification.new do |s|
s.add_dependency 'mister_bin', '~> 0.7'
s.add_dependency 'naturally', '~> 2.2'
s.add_dependency 'os', '~> 1.0'
s.add_dependency 'pandoc-ruby', '~> 2.1'
s.add_dependency 'puma', '>= 5.1', '< 7'
s.add_dependency 'rackup', '~> 2.1'
s.add_dependency 'redcarpet', '~> 3.5'
s.add_dependency 'pandoc-ruby', '~> 2.1'
s.add_dependency 'requires', '~> 1.0'
s.add_dependency 'rouge', '~> 4.0'
s.add_dependency 'sinatra', '>= 3.0', '< 5'
Expand Down

0 comments on commit 8f910bf

Please sign in to comment.