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 +4 -4
- data/lib/jekyll-gfm-admonitions.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6910784b96f5dcd1ad72291571d8b2d6bd128ee83a864646e50f9105f5ecf89
|
|
4
|
+
data.tar.gz: 578db5f897f05bbefc2a4db39e8ce35fdb21a4e089e5dfe45bae96449eb684d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cssminify
|