Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jul 16, 2024
1 parent f52c431 commit a6d7c0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/html_pipeline/convert_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ConvertFilter < Filter
attr_reader :text, :html

def initialize(context: {}, result: {})
super(context: context, result: result)
super
end

class << self
Expand Down
2 changes: 1 addition & 1 deletion lib/html_pipeline/convert_filter/markdown_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ConvertFilter < Filter
# :markdown[:extensions] => Commonmarker extensions options
class MarkdownFilter < ConvertFilter
def initialize(context: {}, result: {})
super(context: context, result: result)
super
end

# Convert Commonmark to HTML using the best available implementation.
Expand Down
2 changes: 1 addition & 1 deletion lib/html_pipeline/node_filter/syntax_highlight_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class NodeFilter
# This filter does not write any additional information to the context hash.
class SyntaxHighlightFilter < NodeFilter
def initialize(context: {}, result: {})
super(context: context, result: result)
super
# TODO: test the optionality of this
@formatter = context[:formatter] || Rouge::Formatters::HTML.new
end
Expand Down
2 changes: 1 addition & 1 deletion lib/html_pipeline/text_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class TextFilter < Filter
attr_reader :text

def initialize(context: {}, result: {})
super(context: context, result: result)
super
end

class << self
Expand Down

0 comments on commit a6d7c0a

Please sign in to comment.