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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7edfd6ee252b912cb6d3c30f50fcf6c0da0f0e5dc49694f3d2990ac6511e4584
4
- data.tar.gz: 8cf8478f0a431f2b436356d5cd905586629bc3eea130cd777516435f9260284c
3
+ metadata.gz: 3d02de351b09bc7030ee6411442c275cbda50416e773c3a0cb80f36538608692
4
+ data.tar.gz: e68c0eaca4171b2d6a468802ed746008edb02efb5fe31bcc70012aa2ec702338
5
5
  SHA512:
6
- metadata.gz: 8ece38e9ce327d4c4868ff3d1273cee59abcf0b02f6e7171b4bae061c175eaec359e6a359549f2c9f534a73356f8024a4cf1141ff9b8bb7a38e5a179b55b8994
7
- data.tar.gz: 3327e7a86426bc7c43931f579fa9924b30970e7a8f6ee38c2a5dbf7d2a3345e388f157e34a89fd069945d2a41513514db82bf02e7a9f8e6032ea85f44530525c
6
+ metadata.gz: 1f236c037405191c8fca37700b3fd439e45f7d84f22d5e4bb0bfeae615227004bd0894038088c153f0464fb0c500df8da4f4872ab7dbfede3268442256d95bc0
7
+ data.tar.gz: a76901649038a3710b7e8781082397476a17bab5a17ff398ad4dc1f3f7a010a70936b719b6299f59ba44dfb80cec8d924c31852234bd4f79b6aacef925ec60d9
@@ -6,6 +6,6 @@ module Jekyll
6
6
  # Regenerated alongside the gemspec on every `make gemspec` run (locally
7
7
  # or in CI), so it always matches spec.version in the built gem. Any
8
8
  # hand edit is overwritten on the next run.
9
- VERSION = '1.4.0'
9
+ VERSION = '1.5.0'
10
10
  end
11
11
  end
@@ -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.0
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