octopress-escape-code 1.0.4 → 2.0.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/CHANGELOG.md +3 -0
- data/README.md +13 -13
- data/lib/octopress-escape-code.rb +2 -2
- data/lib/octopress-escape-code/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0fb69f01127fe42dcc0d06bdf519ecdc5aa8f4f
|
4
|
+
data.tar.gz: 4f1cc99f2f8eeba1ec6c468f04be895f5863610c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db184f21c438932150fb2d77a47537d34be23f387b239996f81bc881108483cc77541ac2c4d26a5d58629165a04a50e995c2be84d7c086dd185f01d8349d8242
|
7
|
+
data.tar.gz: 687fdedd2892f070d692b243a6c8aad5ddd80fda599ec168959ab34ebc5c0e28a115f5b3be9be60b99953671ba99dca4cdfe26f2de2d283b56b5a01fa2b43f62
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -30,6 +30,19 @@ Next add it to your gems list in Jekyll's `_config.yml`
|
|
30
30
|
gems:
|
31
31
|
- octopress-escape-code
|
32
32
|
|
33
|
+
### Configuration
|
34
|
+
|
35
|
+
To escape code blocks on a single page, add this configuration to the page's YAML front-matter.
|
36
|
+
|
37
|
+
escape_code: true
|
38
|
+
|
39
|
+
If you prefer, you can enable it on a site-wide basis.
|
40
|
+
|
41
|
+
// in Jekyll's _config.yml
|
42
|
+
escape_code: true
|
43
|
+
|
44
|
+
Adding `escape_code: false` any the page's YAML front-matter will disable code escaping for that page.
|
45
|
+
|
33
46
|
## Usage
|
34
47
|
|
35
48
|
### Code plugins
|
@@ -72,19 +85,6 @@ well.
|
|
72
85
|
|
73
86
|
This works with double back tick code tags as well.
|
74
87
|
|
75
|
-
### Disable Automatic escaping
|
76
|
-
|
77
|
-
To disable code escaping for a single page, add this to the page's YAML front-matter.
|
78
|
-
|
79
|
-
escape_code: fasle
|
80
|
-
|
81
|
-
If you prefer, you can enable it on a per page basis, by turning off automatic code escaping in your site's configuration.
|
82
|
-
|
83
|
-
// in Jekyll's _config.yml
|
84
|
-
escape_code: false
|
85
|
-
|
86
|
-
Then, add `escape_code: true` to the page's YAML front-matter to enable code escaping for a single page.
|
87
|
-
|
88
88
|
## Contributing
|
89
89
|
|
90
90
|
1. Fork it ( https://github.com/octopress/escape-code/fork )
|
@@ -33,10 +33,10 @@ module Octopress
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.escape_enabled?(page)
|
36
|
-
get_config(page, 'escape_code',
|
36
|
+
get_config(page, 'escape_code', false)
|
37
37
|
end
|
38
38
|
|
39
|
-
def self.get_config(page, config, default
|
39
|
+
def self.get_config(page, config, default)
|
40
40
|
site_config = page.site.config[config]
|
41
41
|
site_config = default if site_config.nil?
|
42
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-escape-code
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
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-12-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-hooks
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.2.2
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Return tag renders a variable with some nice features
|