jekyll-autolinks 0.2.0 → 0.2.2

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
  SHA256:
3
- metadata.gz: e8638f20418ea9cf4051514f0c84337d646efee5dda7ce8cb056a54c1cd91f7f
4
- data.tar.gz: 1ef20440fb51f9b30a0ed9948887f4066e5486000c547b348179363bfeca36e3
3
+ metadata.gz: 42d6336473f6cd6faeee63c8414d2442cde0f7addfe15b0f073bd68271db1c1a
4
+ data.tar.gz: e1fd1cc12ebe338b082befde36cc4b122c3f6b03c629372f52e5f489b5f485b1
5
5
  SHA512:
6
- metadata.gz: c2c25d03f5dfce8ef2e063c4b6729696fa20df6caa84fb900da30e26ac2af16563e7d1451e7c6ee3e36ad2e08aaf18e99793d5493b7df361850ac8d529ffa139
7
- data.tar.gz: b967e6affa87e94f1c4bd50dc182a8a88d9f882dc65a3490af90de28fb027c08af8899e8316486bfbc5279a5ffa61db6cc025e170cdbaac6e0f5a18d1bcc3746
6
+ metadata.gz: eea8447fd3dc939cad3113b3f0d05eed974b70c19d3849ea2f5030c20287f72388d4152655d651e0a55241fa11df008fa43b915d93ddce54ae942d37e668004b
7
+ data.tar.gz: 4de94cda56ad55d6ae8a81a09d2767a3043579cc8fcb92a4e2ff9eeb43a5a6413b991fa71c4155d8c025b0e54db8ee595a7efc253c4f13a14694bda77b193cf2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-autolinks (0.2.0)
4
+ jekyll-autolinks (0.2.2)
5
5
  jekyll (>= 3.9.5)
6
6
  rinku (~> 2.0.6)
7
7
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jekyll-autolinks"
7
- spec.version = "0.2.0"
7
+ spec.version = "0.2.2"
8
8
  spec.authors = ["ADoyle"]
9
9
  spec.email = ["adoyle.h@gmail.com"]
10
10
  spec.summary = "Autolink for your Jekyll site."
@@ -2,11 +2,7 @@ require 'jekyll'
2
2
  require 'rinku'
3
3
 
4
4
  Jekyll::Hooks.register :pages, :post_render do |page|
5
- if not page.html?
6
- return
7
- end
8
-
9
- link_attr = site.config['autolinks']['link_attr']
10
- skip_tags = site.config['autolinks']['skip_tags']
11
- page.content = +Rinku.auto_link(page.content, :all, link_attr, skip_tags)
5
+ link_attr = page.site.config['autolinks']['link_attr']
6
+ skip_tags = page.site.config['autolinks']['skip_tags']
7
+ page.output = Rinku.auto_link(page.output, :all, link_attr, skip_tags)
12
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-autolinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ADoyle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-19 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll