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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/html/pipeline/markdown_filter.rb +6 -1
- data/lib/html/pipeline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf9a25deddae9a797d4b623951638ceabe2e1088
|
4
|
+
data.tar.gz: d43f0b6af9ba798fa8127f64b4b34fcb84f700be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524dbe5ed8ea3fd4793479c48ff85f0c2149f9588fc3f8e0df72044ab82b99e9ce991de9997eea75224168a64f851504434374a288128dcef8033c607f539bb5
|
7
|
+
data.tar.gz: 8a5c40010496e9ab411d9a6a9aec59b5830325e8e372dc95aba0bbbc0033765d54e2abb41e9ef811e23fd8be51d84db62d73aa9d9d26c1eb0adcc3d858145e3e
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|