octopress-code-highlighter 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-code-highlighter/renderer.rb +3 -4
- data/lib/octopress-code-highlighter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa7b8003229b9a5190ee54429c6600c56e8fd0f
|
4
|
+
data.tar.gz: 436f78a3eab962ad6a882d89104fc5f1888c7b44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26408b9788d16e3f593b375661fe9f6a17b0d3ce5a5f3fd2c7cdd5ae984f092e3dc21294281e99e5b73d85d09e131af5586ccafd82ce500beef2fd0182e67017
|
7
|
+
data.tar.gz: fe56c4a7449e23122297d5ab3a626af4516c4ac935239b7de78ca5f546118c920ffcc0386f4dcccbbaa9ef804af990dd6e963b4f3b0241d8c1d06cdbc997825e
|
data/CHANGELOG.md
CHANGED
@@ -43,7 +43,7 @@ module Octopress
|
|
43
43
|
cache
|
44
44
|
else
|
45
45
|
rendered_code = render
|
46
|
-
rendered_code =
|
46
|
+
rendered_code = escape_characters(rendered_code)
|
47
47
|
rendered_code = tableize_code(rendered_code)
|
48
48
|
rendered_code = "<figure class='code-highlight-figure'>#{caption}#{rendered_code}</figure>"
|
49
49
|
rendered_code = "{% raw %}#{rendered_code}{% endraw %}" if options[:escape]
|
@@ -149,9 +149,8 @@ module Octopress
|
|
149
149
|
code
|
150
150
|
end
|
151
151
|
|
152
|
-
def
|
153
|
-
code.gsub(/{
|
154
|
-
.gsub(/{%/, '{%')
|
152
|
+
def escape_characters(code)
|
153
|
+
code.gsub(/{/, '{').gsub(/}/, '}')
|
155
154
|
end
|
156
155
|
|
157
156
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-code-highlighter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorator
|