jekyll_inline_highlight 2.0 → 3.0
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_inline_highlight.rb +5 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b2f0de2c043f83f41c6fb46968bf5330c74d65f
|
|
4
|
+
data.tar.gz: 31ededdd8dcf1b0fd0eced0d30feb58535442794
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 942cc674ff729dd210eb45e3270021dbe7d46cacf40b0719b2473bf00fc4e879deab8112840ffc87c49d4e08ebb32b183a7378ab14defae9502203b93660ebba
|
|
7
|
+
data.tar.gz: cb5d748c48462de6277c77b122859ecd2f28f96105d8bbfe564b33c02f473bdc3853a92ceff36a5337251428c1651d55af59b53e65b0ba5fcbca93fc2f49d8e1
|
|
@@ -11,9 +11,11 @@ module Jekyll
|
|
|
11
11
|
class InlineHighlightBlock < Tags::HighlightBlock
|
|
12
12
|
|
|
13
13
|
def add_code_tag(code)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
code_attributes = [
|
|
15
|
+
"class=\"highlight language-#{@lang.to_s.gsub('+', '-')}\"",
|
|
16
|
+
"data-lang=\"#{@lang.to_s}\""
|
|
17
|
+
].join(" ")
|
|
18
|
+
"<code #{code_attributes}>#{code.chomp.strip}</code>"
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
def render(context)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll_inline_highlight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '
|
|
4
|
+
version: '3.0'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Esham
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '3.0'
|
|
27
27
|
description: A Liquid tag for inline syntax highlighting in Jekyll.
|
|
28
28
|
email: benjamin@esham.io
|
|
29
29
|
executables: []
|
|
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
51
51
|
version: '0'
|
|
52
52
|
requirements: []
|
|
53
53
|
rubyforge_project:
|
|
54
|
-
rubygems_version: 2.
|
|
54
|
+
rubygems_version: 2.0.0
|
|
55
55
|
signing_key:
|
|
56
56
|
specification_version: 4
|
|
57
57
|
summary: Liquid tag for inline syntax highlighting in Jekyll.
|