jekyll-link-decorator 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-link-decorator/version.rb +1 -1
- data/lib/jekyll-link-decorator.rb +3 -3
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d02de351b09bc7030ee6411442c275cbda50416e773c3a0cb80f36538608692
|
|
4
|
+
data.tar.gz: e68c0eaca4171b2d6a468802ed746008edb02efb5fe31bcc70012aa2ec702338
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f236c037405191c8fca37700b3fd439e45f7d84f22d5e4bb0bfeae615227004bd0894038088c153f0464fb0c500df8da4f4872ab7dbfede3268442256d95bc0
|
|
7
|
+
data.tar.gz: a76901649038a3710b7e8781082397476a17bab5a17ff398ad4dc1f3f7a010a70936b719b6299f59ba44dfb80cec8d924c31852234bd4f79b6aacef925ec60d9
|
|
@@ -249,14 +249,14 @@ module Jekyll
|
|
|
249
249
|
default_classes = config.fetch('default_link_classes', DEFAULT_LINK_CLASSES)
|
|
250
250
|
alert_classes = config.fetch('alert_link_classes', DEFAULT_ALERT_LINK_CLASSES)
|
|
251
251
|
|
|
252
|
-
# Apply alert classes to links inside p.alert
|
|
253
|
-
doc.css('p.alert a:not(.btn)').each do |link|
|
|
252
|
+
# Apply alert classes to links inside p.alert or blockquote.alert
|
|
253
|
+
doc.css('p.alert a:not(.btn), blockquote.alert a:not(.btn)').each do |link|
|
|
254
254
|
add_classes(link, alert_classes)
|
|
255
255
|
end
|
|
256
256
|
|
|
257
257
|
# Apply default classes to all other non-alert links
|
|
258
258
|
doc.css('a:not(.btn)').each do |link|
|
|
259
|
-
next if link.ancestors('p.alert').any?
|
|
259
|
+
next if link.ancestors('p.alert, blockquote.alert').any?
|
|
260
260
|
|
|
261
261
|
classes_to_add = if link['class'].to_s.match?(/\blink-underline-(?!opacity)\S+/)
|
|
262
262
|
default_classes.split.grep_v(/\Alink-underline-(?!opacity)/).join(' ')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-link-decorator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alain Reguera Delgado
|
|
@@ -105,6 +105,20 @@ dependencies:
|
|
|
105
105
|
- - "~>"
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
107
|
version: '3.13'
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: rspec_junit_formatter
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - "~>"
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '0.6'
|
|
115
|
+
type: :development
|
|
116
|
+
prerelease: false
|
|
117
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
118
|
+
requirements:
|
|
119
|
+
- - "~>"
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: '0.6'
|
|
108
122
|
- !ruby/object:Gem::Dependency
|
|
109
123
|
name: simplecov
|
|
110
124
|
requirement: !ruby/object:Gem::Requirement
|