ZMediumToMarkdown 2.1.8 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Helper.rb +3 -7
- data/lib/Parsers/MarkupParser.rb +4 -0
- data/lib/Parsers/MarkupStyleRender.rb +0 -8
- 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: bf482465d9d4d2912bb952af23b59113e217895719840a9e20c3075758b16223
|
4
|
+
data.tar.gz: 9c5f8ccda1dc1d0c730a4f11559e68018da149885b243e8865e2206f1a54c017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d4d7449712d21825be0cb839dd2ebbcfed33cac094bd3176c84ddf11921cb0c3968ca8d05cf279cc4fa0877778e10e54a2fad97613e7eadc802e948b5e61fc5
|
7
|
+
data.tar.gz: ec4f667d44c167fb0d3d5380c7f21eebcf55efc5d3c038b57e5949ae703960e769bfde70c682bfc4517527dc90482b051b796b31d4562b89b0a1a96a9f6f9a4f
|
data/lib/Helper.rb
CHANGED
@@ -24,13 +24,9 @@ class Helper
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.escapeHTML(text)
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
">"
|
31
|
-
else
|
32
|
-
text
|
33
|
-
end
|
27
|
+
text = text.gsub(/(<)/, '<')
|
28
|
+
text = text.gsub(/(>)/, '>')
|
29
|
+
text
|
34
30
|
end
|
35
31
|
|
36
32
|
def self.createDirIfNotExist(dirPath)
|
data/lib/Parsers/MarkupParser.rb
CHANGED
@@ -272,10 +272,6 @@ class MarkupStyleRender
|
|
272
272
|
response.append(char)
|
273
273
|
else
|
274
274
|
resultChar = Helper.escapeMarkdown(char.chars.join())
|
275
|
-
if isForJekyll
|
276
|
-
resultChar = Helper.escapeHTML(resultChar)
|
277
|
-
end
|
278
|
-
|
279
275
|
response.append(TextChar.new(resultChar.chars, "Text"))
|
280
276
|
end
|
281
277
|
end
|
@@ -315,10 +311,6 @@ class MarkupStyleRender
|
|
315
311
|
response = []
|
316
312
|
chars.each do |index, char|
|
317
313
|
resultChar = char
|
318
|
-
if isForJekyll
|
319
|
-
resultChar = escapeHTML(char)
|
320
|
-
end
|
321
|
-
|
322
314
|
response.append(resultChar)
|
323
315
|
end
|
324
316
|
|