jekyll-gfm-admonitions 1.0.3 → 1.0.4

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: 8c856c5c80e38dd3778962e1387a3274a44466bf18a1b2eb80d52ad6249e724b
4
- data.tar.gz: e7b5ec263f858813126b9b166192f8fd904971132923212aa245d334fd047a33
3
+ metadata.gz: 55602a9eb6c0421b49d053f7c5d632d3688d13fe4b200c9b46df7e28fa13082b
4
+ data.tar.gz: 9bac7b962095054d91543ff318dd525f1b171a6998bcd880d58b64d991a6b1a8
5
5
  SHA512:
6
- metadata.gz: e32f87292a299bdcb8e205596d22f4a894ab119fdcc1b8f95a90d8a156be1b1939903d9319b206ca180222ed55bdfd4b745ff5b690a693fead05b5d982ee77fc
7
- data.tar.gz: df9cb535ee7125500ae0198de79567206a8f9ef69af92e58222d77395c558d524b37536c95c57fc84807081afb82ccdc4a7614771307c6b928d75567d4f55a2a
6
+ metadata.gz: 17d54f579fa4ff3f59c4ef4473f664c044207f86ada2710e46fba9afa79aa181b0df9ef3abdda9c5a4eb42a018fd55ff3e3448bf56ca60b70eec553abda728e6
7
+ data.tar.gz: 3fb3cd143db748991579039b9d0704dc1490e080cb49c02132b308fe68553f370f5344fed0d91f2f914bb85ea7750609e2a1786066ed0f3008e4f138fc2a8d2e
@@ -118,7 +118,8 @@ module JekyllGFMAdmonitions
118
118
  css = File.read(File.expand_path('../assets/admonitions.css', __dir__))
119
119
 
120
120
  page.output.gsub!(%r{<head>(.*?)</head>}m) do |match|
121
- "#{match[0..-7]}<style>#{CSSminify.compress(css)}</style>#{match[-7..]}"
121
+ head = Regexp.last_match(1)
122
+ "<head>#{head}<style>#{CSSminify.compress(css)}</style></head>"
122
123
  end
123
124
 
124
125
  # If no <head> tag is found, insert the CSS at the start of the output
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-gfm-admonitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin De Schepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-01 00:00:00.000000000 Z
11
+ date: 2025-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cssminify