jekyll-artisync 0.9 → 0.91
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/jekyll-artisync.rb +1 -1
- data/lib/syncers/zhihu_syncer.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 425701e12ccbb875c5450ecae4e14a02c826b204020e7e2d9fee029d16c52fcf
|
|
4
|
+
data.tar.gz: 4dffb5cab2f2c3aa453875483b4d7d0bc66885b6ddbe17abca7c1a43a8b98c0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f21858520556122ef9121ba4723243397178fb7c7584380088671b03576fbafd97cc90b0365eabe966de0ff9b7425ba260f6345f4c16a4fa5b5669cfe8672f35
|
|
7
|
+
data.tar.gz: 0fe81d4584898ea2ec07ddff958153350ce9b8ddbb0931513362823b510fcef23e7eb26ff10fed2afbea194f014cb2aa77e3572e35baf785172d3666fb54a848
|
data/lib/jekyll-artisync.rb
CHANGED
data/lib/syncers/zhihu_syncer.rb
CHANGED
|
@@ -8,6 +8,13 @@ class ZhihuSyncer < PerNodeSyncer
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def _handle_node(node)
|
|
11
|
+
if node.child and node.child["class"] == 'ztext-math'
|
|
12
|
+
# write this line to your generated html for mathjax support:
|
|
13
|
+
# <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
14
|
+
# for example, you can include it in your template file: _layouts/post.html
|
|
15
|
+
node.content = '$$' + node.content + '$$'
|
|
16
|
+
end
|
|
17
|
+
|
|
11
18
|
case node.name
|
|
12
19
|
when 'figure'
|
|
13
20
|
img_node = node.css('img')[-1]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-artisync
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.91'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Junhan Zhu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
61
|
requirements: []
|
|
62
|
-
rubygems_version: 3.
|
|
62
|
+
rubygems_version: 3.2.3
|
|
63
63
|
signing_key:
|
|
64
64
|
specification_version: 4
|
|
65
65
|
summary: Jekyll Plugin to sync articles from other sites.
|