jekyll-titles-from-headings 0.5.4 → 0.5.5
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/CHANGELOG.md +18 -0
- data/lib/jekyll-titles-from-headings/filters.rb +1 -1
- data/lib/jekyll-titles-from-headings/generator.rb +3 -2
- data/lib/jekyll-titles-from-headings/version.rb +1 -1
- data/lib/jekyll-titles-from-headings.rb +0 -1
- metadata +3 -4
- data/lib/jekyll-titles-from-headings/context.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 955034e1df713a566167abd154f673ed2bc3759f051d6199d670bf7886973ea7
|
|
4
|
+
data.tar.gz: 94c3208f4c4e9e8f5702fa4c902373960c4cada83be5649bf445952fe8f7b6bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e27b1c5fa717b155f102071d650fe276390c716e72ff0be49357ac8dc778269f3cb419727e8ae946ea450a841d671d1c4f7736b8cae6f3bdad875de0be505fb7
|
|
7
|
+
data.tar.gz: e0db48aa27ff038d4d2378ae5e8ec179f216a305ec24191029828123797701ea643337cd3cee1e7004afe7a1a73bcc868e6e0e03fa01f21408394130aa817d9a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.5
|
|
4
|
+
|
|
5
|
+
### Bug fixes
|
|
6
|
+
|
|
7
|
+
- Strip ATX closing hashes, so `# Title ##` produces the title `Title` (#97)
|
|
8
|
+
|
|
9
|
+
### Internal
|
|
10
|
+
|
|
11
|
+
- Use `Liquid::Context` instead of a custom context class (#97)
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
- Declare `required_ruby_version >= 3.0` (#89)
|
|
16
|
+
|
|
17
|
+
### Infrastructure
|
|
18
|
+
|
|
19
|
+
- Bump `github/codeql-action` (#90, #94)
|
|
20
|
+
|
|
3
21
|
## 0.5.4
|
|
4
22
|
|
|
5
23
|
### Bug fixes
|
|
@@ -8,7 +8,8 @@ module JekyllTitlesFromHeadings
|
|
|
8
8
|
%r!
|
|
9
9
|
\A\s* # Beginning and whitespace
|
|
10
10
|
(?: # either
|
|
11
|
-
\#{1,3}\s+(
|
|
11
|
+
\#{1,3}\s+(.*?) # atx-style header, excluding an
|
|
12
|
+
(?:[ \t]+\#+)?[ \t]*\r? # optional closing sequence
|
|
12
13
|
| # or
|
|
13
14
|
(.*)\r?\n[-=]+\s* # Setex-style header
|
|
14
15
|
)$ # end of line
|
|
@@ -118,7 +119,7 @@ module JekyllTitlesFromHeadings
|
|
|
118
119
|
|
|
119
120
|
def strip_title!(document)
|
|
120
121
|
if document.content
|
|
121
|
-
document.content = document.content.
|
|
122
|
+
document.content = document.content.sub(TITLE_REGEX, "").strip
|
|
122
123
|
strip_title_excerpt!(document) if strip_title_excerpt?(document)
|
|
123
124
|
end
|
|
124
125
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-titles-from-headings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
@@ -179,7 +179,6 @@ files:
|
|
|
179
179
|
- LICENSE.md
|
|
180
180
|
- README.md
|
|
181
181
|
- lib/jekyll-titles-from-headings.rb
|
|
182
|
-
- lib/jekyll-titles-from-headings/context.rb
|
|
183
182
|
- lib/jekyll-titles-from-headings/filters.rb
|
|
184
183
|
- lib/jekyll-titles-from-headings/generator.rb
|
|
185
184
|
- lib/jekyll-titles-from-headings/version.rb
|
|
@@ -194,14 +193,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
194
193
|
requirements:
|
|
195
194
|
- - ">="
|
|
196
195
|
- !ruby/object:Gem::Version
|
|
197
|
-
version: '0'
|
|
196
|
+
version: '3.0'
|
|
198
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
198
|
requirements:
|
|
200
199
|
- - ">="
|
|
201
200
|
- !ruby/object:Gem::Version
|
|
202
201
|
version: '0'
|
|
203
202
|
requirements: []
|
|
204
|
-
rubygems_version:
|
|
203
|
+
rubygems_version: 3.6.9
|
|
205
204
|
specification_version: 4
|
|
206
205
|
summary: A Jekyll plugin to pull the page title from the first Markdown heading when
|
|
207
206
|
none is specified.
|