ZMediumToMarkdown 2.0.1 → 2.0.2
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/Parsers/MarkupStyleRender.rb +5 -1
- data/lib/ZMediumFetcher.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: 9d5d59f757813210f3d5d98025ab4bcbb79eaf99c7a8f75d9540854fc7aa7093
|
4
|
+
data.tar.gz: ab7fcd5f9d8588697bc59bd4f26b0a334d69b4e9f21325425e144f53c7a9f38b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d8913a1d4b741a30e4496513fa5c7e6cd0b80b495eb2b62a22eeee4f2e66cdb5873f5b886de1200dff62d2bb1dc175f15312999e7bc28f56fd0cffd361be9cd
|
7
|
+
data.tar.gz: 42dca718b61f52b20424edf8de42a0c9936f39adfdb0392efcc4990cc53df1b4534650d6cb5d48f6945e4d513a39a39657132682dce242d44a897686c5c39503
|
@@ -175,7 +175,11 @@ class MarkupStyleRender
|
|
175
175
|
elsif markup.type == "STRONG"
|
176
176
|
tag = TagChar.new(2, markup.start, markup.end, "**", "**")
|
177
177
|
elsif markup.type == "ESCAPE"
|
178
|
-
|
178
|
+
escapeTagChar = TagChar.new(0,markup.start, markup.end,'','')
|
179
|
+
escapeTagChar.startChars = TextChar.new('\\'.chars,'Text')
|
180
|
+
escapeTagChar.endChars = TextChar.new([],'Text')
|
181
|
+
|
182
|
+
tag = escapeTagChar
|
179
183
|
elsif markup.type == "A"
|
180
184
|
url = markup.href
|
181
185
|
if markup.anchorType == "LINK"
|
data/lib/ZMediumFetcher.rb
CHANGED
@@ -236,7 +236,7 @@ class ZMediumFetcher
|
|
236
236
|
if lines.first.start_with?("---")
|
237
237
|
dateLine = lines.select { |line| line.start_with?("last_modified_at:") }.first
|
238
238
|
if !dateLine.nil?
|
239
|
-
fileLatestPublishedAt = Time.parse(dateLine[/^(last_modified_at:)\s+(\S*)/, 2]).to_i
|
239
|
+
#fileLatestPublishedAt = Time.parse(dateLine[/^(last_modified_at:)\s+(\S*)/, 2]).to_i
|
240
240
|
end
|
241
241
|
end
|
242
242
|
end
|