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 +5 -5
- data/jekyll-commonmark-ghpages.gemspec +1 -1
- data/lib/jekyll-commonmark-ghpages.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 635aef17f3e4a950f8f41670fbbb1712e39c4b3e1ffdddfd48fbf70f1b233820
|
4
|
+
data.tar.gz: a2a42104b0688eedf9612db4afd76928fe156c8b8c8b3659a5697b5d2a2dba08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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(
|
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 += "-"
|
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.
|
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:
|
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.
|
135
|
+
rubygems_version: 2.7.3
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: CommonMark generator for Jekyll
|