jekyll-commonmark-ghpages 0.1.3 → 0.1.4

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
- SHA1:
3
- metadata.gz: 77b6b283ce101e3bf78441728c169a27f4bd2c3a
4
- data.tar.gz: e9af36f45a26ed810b4610c5a4bf0210ecbd85d8
2
+ SHA256:
3
+ metadata.gz: 635aef17f3e4a950f8f41670fbbb1712e39c4b3e1ffdddfd48fbf70f1b233820
4
+ data.tar.gz: a2a42104b0688eedf9612db4afd76928fe156c8b8c8b3659a5697b5d2a2dba08
5
5
  SHA512:
6
- metadata.gz: 7de22399e10e9a446465401adf2f5497a22cbd698d108e0d8c014b88ac2bf472fbcb69642131901723512df859b444c657775eec1577eb50b972ec55160f3f7f
7
- data.tar.gz: b5342bd1e45ec9759f9f375f24f1e579e2bb40ac113f7f135960592106bc2a134a8a4a35e17b7a5e85fe968225339e8b91e797b67cf0cb7de9a67a5b381da54a
6
+ metadata.gz: 7741f0a8cae7c61a82f69658f1fe3c315e441ec42474c16f1552032ac0afa6f6d55c967b5bca1c218cca218f0609ae00ea9fd7a358e1b555593c0e9bbf98f694
7
+ data.tar.gz: f7ac6c990a91894c1259c19c865b1bed1d3337f6139b8427bc33f5ff01b3014256d7a64b6060e3677b9f3f7edb2be3b0328f4af30547458556a5813c06cf6f18
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-commonmark-ghpages"
5
5
  spec.summary = "CommonMark generator for Jekyll"
6
- spec.version = "0.1.3"
6
+ spec.version = "0.1.4"
7
7
  spec.authors = ["Ashe Connor"]
8
8
  spec.email = "kivikakk@github.com"
9
9
  spec.homepage = "https://github.com/github/jekyll-commonmark-ghpages"
@@ -26,7 +26,7 @@ class JekyllCommonMarkCustomRenderer < ::CommonMarker::HtmlRenderer
26
26
 
27
27
  def code_block(node)
28
28
  lang = if node.fence_info && !node.fence_info.empty?
29
- node.fence_info.split(/\s+/)[0]
29
+ node.fence_info.split(/[\s,]/)[0]
30
30
  end
31
31
 
32
32
  content = node.string_content
@@ -60,7 +60,7 @@ class JekyllCommonMarkCustomRenderer < ::CommonMarker::HtmlRenderer
60
60
  gen_id = "section" if gen_id.empty?
61
61
  @used_ids ||= {}
62
62
  if @used_ids.key?(gen_id)
63
- gen_id += "-" << (@used_ids[gen_id] += 1).to_s
63
+ gen_id += "-" + (@used_ids[gen_id] += 1).to_s
64
64
  else
65
65
  @used_ids[gen_id] = 0
66
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-commonmark-ghpages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashe Connor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-24 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-commonmark
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.5.1
135
+ rubygems_version: 2.7.3
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: CommonMark generator for Jekyll