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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35daf7e2a18389a376afe03898f0bfd5e1c182bf3600d082ac2da5cfb5b9482c
4
- data.tar.gz: f8dd966b216ac7a8cb31458cdc247b02681d08c4d7e54b5f1758f48da6caed8e
3
+ metadata.gz: bafaac7934aef8f89a32dedf975458e9a6e74decd435f93169d572893fae4010
4
+ data.tar.gz: 52b6d7b0937495c6a4a3ea344c24c0edd011ede5bb0edd27db795b446ae3d19a
5
5
  SHA512:
6
- metadata.gz: b5c676676d8ca512273a5e6c8a27478bc4efeba521e291a790a8b5918605637dc850825a486ed85f9c6a2f1f20d690a9db9f7cf3b67ab9ecef733dcce66c338b
7
- data.tar.gz: e4419130bd095e9b84c04a8b785970f369462f263fd363ee18d8b04d686e3c12e8938eff43c8c03c6485511218470f5905dcf67b58ce7ec7c8559e43e3a9afe6
6
+ metadata.gz: dc4ac2c1ecf065f3c95eafa4fe4f8d20ec84beafd08e26bebcdfe91f2ff072f45015c29a42a097e1cd332a51cc0b2722f95c619b971697a96f96867c85d1fa78
7
+ data.tar.gz: c1c93520d84b285b602c83eb3b7cc4bcb6a245c5cf808d4fad8b15b6c1513a48f259a9c7868fe54c2dd89b17384db5e8367617ca81b437a0a11d9967f98e9de8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Microtypo
5
- VERSION = "1.2.6"
5
+ VERSION = "1.3.1"
6
6
  end
7
7
  end
@@ -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.,])!, '\1\2<sup>\3\4</sup>\5')
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>&#8239;\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.2.6
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: 2019-11-10 00:00:00.000000000 Z
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.15'
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.15'
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.0.6
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: []