jekyll-microtypo 1.2.6 → 1.3.1
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/microtypo/version.rb +1 -1
- data/lib/jekyll/microtypo.rb +4 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bafaac7934aef8f89a32dedf975458e9a6e74decd435f93169d572893fae4010
|
4
|
+
data.tar.gz: 52b6d7b0937495c6a4a3ea344c24c0edd011ede5bb0edd27db795b446ae3d19a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4ac2c1ecf065f3c95eafa4fe4f8d20ec84beafd08e26bebcdfe91f2ff072f45015c29a42a097e1cd332a51cc0b2722f95c619b971697a96f96867c85d1fa78
|
7
|
+
data.tar.gz: c1c93520d84b285b602c83eb3b7cc4bcb6a245c5cf808d4fad8b15b6c1513a48f259a9c7868fe54c2dd89b17384db5e8367617ca81b437a0a11d9967f98e9de8
|
data/lib/jekyll/microtypo.rb
CHANGED
@@ -90,7 +90,7 @@ module Jekyll
|
|
90
90
|
|
91
91
|
def fix_microtypo_fr(input)
|
92
92
|
# Ordinals
|
93
|
-
input.gsub!(%r!(\s)(\d+)(e|è)(r|me)?([\s
|
93
|
+
input.gsub!(%r!(\s)(\d+)(e|è)(r|me|re)?([\s.,\)])!, '\1\2<sup>\3\4</sup>\5')
|
94
94
|
|
95
95
|
# Num
|
96
96
|
input.gsub!(%r!n°\s*(\d)!, 'n<sup>o</sup> \1')
|
@@ -133,6 +133,9 @@ module Jekyll
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def fix_microtypo_us(input)
|
136
|
+
# Ordinals
|
137
|
+
input.gsub!(%r!(\s)(\d+)(st|th)([\s.,\)])!, '\1\2<sup>\3</sup>\4')
|
138
|
+
|
136
139
|
# Remove useless spaces
|
137
140
|
input.gsub!(%r/ (:|%|;|\!|\?)([^\w!]|$)/, '\1\2')
|
138
141
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-microtypo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Schapira
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1
|
39
|
+
version: '2.1'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1
|
46
|
+
version: '2.1'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: minitest
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ homepage: https://borisschapira.github.io/jekyll-microtypo/
|
|
110
110
|
licenses:
|
111
111
|
- MIT
|
112
112
|
metadata: {}
|
113
|
-
post_install_message:
|
113
|
+
post_install_message:
|
114
114
|
rdoc_options: []
|
115
115
|
require_paths:
|
116
116
|
- lib
|
@@ -125,8 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
129
|
-
signing_key:
|
128
|
+
rubygems_version: 3.2.3
|
129
|
+
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Jekyll plugin that improves microtypography
|
132
132
|
test_files: []
|