Skip to content

Commit

Permalink
Merge pull request #386 from gjtorikian/release-3.0.0
Browse files Browse the repository at this point in the history
💎 3.0.0
  • Loading branch information
gjtorikian authored Dec 24, 2023
2 parents 62b9b08 + b2624b4 commit f48b199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/html_pipeline/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class HTMLPipeline
VERSION = "3.0.0.pre6"
VERSION = "3.0.0"
end
10 changes: 5 additions & 5 deletions test/html_pipeline/node_filter/syntax_highlight_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class HTMLPipeline
class SyntaxHighlightFilterTest < Minitest::Test
def test_highlight_default
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -19,7 +19,7 @@ def test_highlight_default
end

def test_highlight_default_will_not_override
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -30,7 +30,7 @@ def test_highlight_default_will_not_override
end

def test_highlight_does_not_remove_pre_tag
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -40,7 +40,7 @@ def test_highlight_does_not_remove_pre_tag
end

def test_highlight_allows_optional_scope
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript", scope: "test-scope" }
)

Expand All @@ -50,7 +50,7 @@ def test_highlight_allows_optional_scope
end

def test_highlight_keeps_the_pre_tags_lang
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand Down
4 changes: 2 additions & 2 deletions test/sanitization_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_sanitization_pipeline_can_be_configured
elements: ["p", "pre", "code"],
}

pipeline = HTMLPipeline.new(\
pipeline = HTMLPipeline.new(
convert_filter:
HTMLPipeline::ConvertFilter::MarkdownFilter.new,
sanitization_config: config,
Expand All @@ -241,7 +241,7 @@ def test_sanitization_pipeline_can_be_configured
end

def test_sanitization_pipeline_can_be_removed
pipeline = HTMLPipeline.new(\
pipeline = HTMLPipeline.new(
convert_filter: HTMLPipeline::ConvertFilter::MarkdownFilter.new(context: { markdown: { plugins: { syntax_highlighter: nil } } }),
sanitization_config: nil,
node_filters: [
Expand Down

0 comments on commit f48b199

Please sign in to comment.