html-pipeline 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4331ea961008327c8a6a060c0c3c44ce412e7435
4
- data.tar.gz: 7a4579b7a5b1f9e838b8db0527658528eaeb1527
3
+ metadata.gz: bf9a25deddae9a797d4b623951638ceabe2e1088
4
+ data.tar.gz: d43f0b6af9ba798fa8127f64b4b34fcb84f700be
5
5
  SHA512:
6
- metadata.gz: ba87020a503a6f84766b0df1d23522064bcd2a7ba63bdf79151dc8c93807302d3d03fcfda9f13365fe660025f7961b5a1a7a45b326a58b56667a6d7d841d809b
7
- data.tar.gz: fd4d5ef1ef9aee02c595dca5e4ea28e1470a2b38cf8c7994dcc5e7789c0a71eacd45bb9eec4dd65c1bd9817936db603786699cc9967d501c364bd58818fb15c9
6
+ metadata.gz: 524dbe5ed8ea3fd4793479c48ff85f0c2149f9588fc3f8e0df72044ab82b99e9ce991de9997eea75224168a64f851504434374a288128dcef8033c607f539bb5
7
+ data.tar.gz: 8a5c40010496e9ab411d9a6a9aec59b5830325e8e372dc95aba0bbbc0033765d54e2abb41e9ef811e23fd8be51d84db62d73aa9d9d26c1eb0adcc3d858145e3e
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.6.0
4
+ * Switch from github-markdown to CommonMark #274
5
+ * Fixed a few warnings
6
+
3
7
  ## 2.5.0
4
8
 
5
9
  * Ruby 2.4 support. Backwards compatible, but bumped minor version so projects can choose to lock at older version [#268](https://github.com/jch/html-pipeline/pull/268)
data/README.md CHANGED
@@ -258,8 +258,8 @@ Here are some extensions people have built:
258
258
  ## Instrumenting
259
259
 
260
260
  Filters and Pipelines can be set up to be instrumented when called. The pipeline
261
- must be setup with an [ActiveSupport::Notifications]
262
- (http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html)
261
+ must be setup with an
262
+ [ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html)
263
263
  compatible service object and a name. New pipeline objects will default to the
264
264
  `HTML::Pipeline.default_instrumentation_service` object.
265
265
 
@@ -12,6 +12,8 @@ module HTML
12
12
  #
13
13
  # Context options:
14
14
  # :gfm => false Disable GFM line-end processing
15
+ # :commonmarker_extensions => [ :table, :strikethrough,
16
+ # :tagfilter, :autolink ] Common marker extensions to include
15
17
  #
16
18
  # This filter does not write any additional information to the context hash.
17
19
  class MarkdownFilter < TextFilter
@@ -25,7 +27,10 @@ module HTML
25
27
  def call
26
28
  options = [:GITHUB_PRE_LANG]
27
29
  options << :HARDBREAKS if context[:gfm] != false
28
- html = CommonMarker.render_html(@text, options, [:table, :strikethrough, :tagfilter, :autolink])
30
+ extensions = context.fetch(
31
+ :commonmarker_extensions,
32
+ [:table, :strikethrough, :tagfilter, :autolink])
33
+ html = CommonMarker.render_html(@text, options, extensions)
29
34
  html.rstrip!
30
35
  html
31
36
  end
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Pipeline
3
- VERSION = "2.6.0"
3
+ VERSION = "2.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-23 00:00:00.000000000 Z
12
+ date: 2017-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri