jekyll-wns 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jekyll-wns.gemspec +1 -1
- data/lib/jekyll-wns/assets/label_pronounciation.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 104dc7939f1c3a81372cf2b9d24ab46562f6368d173573b3246377b1c4189f9e
|
4
|
+
data.tar.gz: e491889d693921266971921c96bff5a283602ec246c328e34760873483a96495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ddf6562fda69eb06d5ebea185c9a0d08918a850ddb91a25ecbfaf77f4c75cc818ee45e13d090ba7ff20db3e5c93324745fe8959702f717b836db126a09f974
|
7
|
+
data.tar.gz: 7f050031c6a574bd720d496b40ce290a9b57e0bb6769271010db344dacb1c5daee6ad4362f132c6028aee159441efc325b3e0a15c14faa99da9d15763e7a7021
|
data/jekyll-wns.gemspec
CHANGED
@@ -12,7 +12,7 @@ module WNS
|
|
12
12
|
wns = doc.site.config["wns"] || {}
|
13
13
|
labels = wns["label_pronounciation"] || false
|
14
14
|
for i in (0..(labels.length()) - 1) do
|
15
|
-
doc.content = doc.content.gsub(Regexp.new("\b#{labels[i]
|
15
|
+
doc.content = doc.content.gsub(Regexp.new("\b#{labels[i]["term"]}\b"), "<span aria-label='#{labels[i]["pronounciation"]}'>\\1</span>")
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|