jekyll-wns 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a1f012682314531e7d5cd5661958b625185da3a6588fe07ef82af93c975c0d'
|
4
|
+
data.tar.gz: 841863d7aa27f0aba8334396cdb8484a395fd3ac8831a4662a485bc38f9b7b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb7c3e18ae6e2d4d84f1accd64d20d79a07ac4e304150f361935c1fbc2fcb85dc1fe95e725a680ca3e6bf198bfcd87e7e49a91d07ab074fa2c24b21cccf4f7e
|
7
|
+
data.tar.gz: 42ab60840ecd481be7ffcf52301d85b815bc287ada3c7bd104939027bc7578de041da01a1326a5ad5731a49e303dcdbed97b58d35a2c1d5ca9cd2020bd279774
|
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]["term"]}\b"), "<span aria-label='#{labels[i]["pronounciation"]}'>\\1</span>")
|
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
|
@@ -11,7 +11,7 @@ module WNS
|
|
11
11
|
def self.label_unicode!(doc)
|
12
12
|
if LabelUnicode::enabled?(doc)
|
13
13
|
for i in (0..(LabelUnicode::SYMBOLS.length()) - 1) do
|
14
|
-
doc.content = doc.content.gsub(Regexp.new("(
|
14
|
+
doc.content = doc.content.gsub(Regexp.new("(\\S*)#{LabelUnicode::SYMBOLS[i].source}(\\S*)"), "<span aria-label='\\1#{LabelUnicode::READINGS[i]}\\3'>\\1\\2\\3</span>")
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|