jekyll-gfm-admonitions 1.4.2 → 1.4.3

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: 6c5255137d59b59fdf76610242b3fb7e8952e79eaca476a52665b10f17380937
4
- data.tar.gz: 0fa0b385dd76ab60fe0934a72ad4796cde419691a2555930a6123c4995872da1
3
+ metadata.gz: c6910784b96f5dcd1ad72291571d8b2d6bd128ee83a864646e50f9105f5ecf89
4
+ data.tar.gz: 578db5f897f05bbefc2a4db39e8ce35fdb21a4e089e5dfe45bae96449eb684d1
5
5
  SHA512:
6
- metadata.gz: d5825a9ebac089f0298ee84fd4a0b693254522705ac676b707c530d65c86dcb30f3cf714cfb7d18783e4af1fadfb14fee155a4a1b96089ebe1d107276e940a3a
7
- data.tar.gz: 2b67ab5c23d222de5babe4cd106133aa603037c73cc626a7e08b379a3c906ebfd447feb7fa431e4b19d68da299d1c9abcad7b567588480359b8fa4d54f1867ec
6
+ metadata.gz: faefa50977e2bd6deea394d3d2d883d6ffc356aa6f1912808a29e903cad9b987eab82cd15c3c13a42318ccbf49c51fbfce205fe1016414edffc677802b90df6d
7
+ data.tar.gz: 4211efed84d862d1c278d6db488ae4c2234e09bfd8f12f75dc4863b3493659d736f8f7676276ef0a14bed37d2407b844c5878e936158a563da0f8d5b5038445b
@@ -137,7 +137,11 @@ module JekyllGFMAdmonitions
137
137
  initial_indent = ::Regexp.last_match(1)
138
138
  type = ::Regexp.last_match(2).downcase
139
139
  title = ::Regexp.last_match(3).strip.empty? ? type.capitalize : ::Regexp.last_match(3).strip
140
- text = ::Regexp.last_match(4).gsub(/^#{Regexp.escape(initial_indent)}[^\S\n]*>[^\S\n]*/, '').strip
140
+ # Strip the blockquote prefix from each line. Per CommonMark, a `>`
141
+ # marker consumes at most ONE following space, so we only remove a
142
+ # single space here. Consuming all whitespace would flatten the
143
+ # indentation that distinguishes nested list items (see issue #20).
144
+ text = ::Regexp.last_match(4).gsub(/^#{Regexp.escape(initial_indent)}[^\S\n]*>[^\S\n]?/, '').strip
141
145
 
142
146
  icon = Octicons::Octicon.new(ADMONITION_ICONS[type]).to_svg
143
147
  html = admonition_html(type, title, text, icon)
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.4.2
4
+ version: 1.4.3
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: 2026-03-26 00:00:00.000000000 Z
11
+ date: 2026-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cssminify