jekyll-artisync 0.9 → 0.91

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: 4c873706255f4f85ab61f889ae05671eb1af5018c00e5b2af34e6851f4e3e4e7
4
- data.tar.gz: 19b8bd6759dff4e8422ff8cbb898bf793161d193dfd56756002bfcb029db56a2
3
+ metadata.gz: 425701e12ccbb875c5450ecae4e14a02c826b204020e7e2d9fee029d16c52fcf
4
+ data.tar.gz: 4dffb5cab2f2c3aa453875483b4d7d0bc66885b6ddbe17abca7c1a43a8b98c0a
5
5
  SHA512:
6
- metadata.gz: 5d7ed874e3156de1a2385afac0e4cae009f9b02e4a29386d0d6fa6b30b77a89b1476de3c0e8bafd7cf51013548712a060c07af15e765b9e43b18b5b376041479
7
- data.tar.gz: c7629c9b9a6350fc3c6c8828c25879342cfda299b12bd5f93334159eca0139be599bde675478d2e0dad9b58045911ce819f551d2783b822a395511431b0282c2
6
+ metadata.gz: f21858520556122ef9121ba4723243397178fb7c7584380088671b03576fbafd97cc90b0365eabe966de0ff9b7425ba260f6345f4c16a4fa5b5669cfe8672f35
7
+ data.tar.gz: 0fe81d4584898ea2ec07ddff958153350ce9b8ddbb0931513362823b510fcef23e7eb26ff10fed2afbea194f014cb2aa77e3572e35baf785172d3666fb54a848
@@ -1,5 +1,5 @@
1
1
  require 'syncers/syncer_factory'
2
- require "jekyll"
2
+ require 'jekyll'
3
3
 
4
4
 
5
5
  class ArticleSyncEmbed < Liquid::Tag
@@ -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.9'
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: 2020-07-17 00:00:00.000000000 Z
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.1.2
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.