ZMediumToMarkdown 2.1.0 → 2.1.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 +4 -4
- data/lib/Helper.rb +2 -2
- data/lib/Parsers/IframeParser.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7f829bce1b8eb7ae5a944c83c4f41cccae4822ac367aa2e7a0a71c9ddd68fce
|
|
4
|
+
data.tar.gz: 0f2dbff52a7852f93865e343e12ef26724c96d9a0833dd97d4a73c7e4441219a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 832f63529eb7e512a7cbd8e53284c2a86f18232ea71aabbbbe1d480ac42e6efc9f8c3dccdf262abc96ac18d96ce48685784e1b5961c8191eea61b258f68c543e
|
|
7
|
+
data.tar.gz: 026b9d34d815cc7a131b7e20c513efa2b8e0767a23ba9a8da6cd8da7cb6dbeda79b327c288729b738b085bcfe596c15aa6c4fd789350d607893811a84713f120
|
data/lib/Helper.rb
CHANGED
|
@@ -196,9 +196,9 @@ class Helper
|
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
text = "\r\n\r\n\r\n"
|
|
199
|
-
text += "
|
|
199
|
+
text += "_[Post](#{postURL})#{jekyllOpen} converted from Medium by [ZMediumToMarkdown](https://github.com/ZhgChgLi/ZMediumToMarkdown)#{jekyllOpen}._"
|
|
200
200
|
text += "\r\n"
|
|
201
201
|
|
|
202
202
|
text
|
|
203
203
|
end
|
|
204
|
-
end
|
|
204
|
+
end
|
data/lib/Parsers/IframeParser.rb
CHANGED
|
@@ -71,7 +71,7 @@ class IframeParser < Parser
|
|
|
71
71
|
result = nil
|
|
72
72
|
if !srce.to_s[/^(https\:\/\/gist\.github\.com)/].nil?
|
|
73
73
|
# is gist
|
|
74
|
-
gist = Request.body(Request.URL(
|
|
74
|
+
gist = Request.body(Request.URL(srce)).scan(/(document\.write\('){1}(.*)(\)){1}/)[1][1]
|
|
75
75
|
gist.gsub! '\n', ''
|
|
76
76
|
gist.gsub! '\"', '"'
|
|
77
77
|
gist.gsub! '<\/', '</'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ZMediumToMarkdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ZhgChgLi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|