octopress-codefence 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -15
- data/README.md +3 -28
- data/lib/octopress-codefence.rb +6 -0
- data/lib/octopress-codefence/version.rb +1 -1
- metadata +2 -3
- data/.clash.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c525033899cbe718fbd609f0987c08907300ed
|
4
|
+
data.tar.gz: 29be9df170da3acaff137a8cc56afe2f93944852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c253032d114b84fdb574afc06c365d7c465354a13fca887a6be087ec4742141279c30a069c58b9a350c273b409a205480fb9621f0c3229096d2681fde64f56
|
7
|
+
data.tar.gz: b08074551c48f933e49d9ae468b28f8e934bb81750f5e5a8d76d13dca7fc550cfeeaefa682a10cfec48b78aac3cbab0ee144e56703963d3ba823cba8f61dc3b1
|
data/CHANGELOG.md
CHANGED
@@ -1,48 +1,51 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
### 1.6.0 (2015-03-19)
|
4
|
+
- Added support for codefence rendering in collections.
|
5
|
+
|
6
|
+
### 1.5.1 (2015-01-04)
|
4
7
|
- Documentation updates
|
5
8
|
|
6
|
-
|
9
|
+
### 1.5.0 (2015-01-03)
|
7
10
|
- Now html comments can be used for setting code options.
|
8
11
|
- Added usage documentation.
|
9
12
|
|
10
|
-
|
13
|
+
### 1.4.5 (2014-12-19)
|
11
14
|
- Fix to readme
|
12
15
|
- Integrated octopress-docs support
|
13
16
|
|
14
|
-
|
17
|
+
### 1.4.4 (2014-07-27)
|
15
18
|
- Now using octopress-hooks instead of jekyll-page-hooks.
|
16
19
|
|
17
|
-
|
20
|
+
### 1.4.3 (2014-06-29)
|
18
21
|
- Updated to latest octopress-code-highlighter gem. Relaxed dependencies.
|
19
22
|
|
20
|
-
|
23
|
+
### 1.4.2
|
21
24
|
- Updated to latest octopress-code-highlighter gem (removing Octopress Ink dependency).
|
22
25
|
|
23
|
-
|
26
|
+
### 1.4.1
|
24
27
|
- Updated to latest octopress-code-highlighter gem (for Sass 3.3 support).
|
25
28
|
|
26
|
-
|
29
|
+
### 1.4.0
|
27
30
|
- Switched to the new octopress-code-highlighter gem.
|
28
31
|
|
29
|
-
|
32
|
+
### 1.3.2
|
30
33
|
- Removed test files from gem pkg.
|
31
34
|
|
32
|
-
|
35
|
+
### 1.3.1
|
33
36
|
- Changed repo homepage url in gemspec.
|
34
37
|
|
35
|
-
|
38
|
+
### 1.3.0
|
36
39
|
- Updated to Octopress pygments 2.0. Now stylesheets can be added using Octopress Ink.
|
37
40
|
|
38
|
-
|
41
|
+
### 1.2.1
|
39
42
|
- Updated Octopress pygments, setting escape option to true.
|
40
43
|
|
41
|
-
|
44
|
+
### 1.2.0
|
42
45
|
- Updated Octopress pygments, adding default Liquid escape.
|
43
46
|
|
44
|
-
|
47
|
+
### 1.1.0
|
45
48
|
- Added support for language aliases in Jekyll config.
|
46
49
|
|
47
|
-
|
50
|
+
### 1.0.0
|
48
51
|
- Initial release
|
data/README.md
CHANGED
@@ -34,9 +34,9 @@ The Octopress codefence has some
|
|
34
34
|
|
35
35
|
### Syntax
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
```lang [options]
|
38
|
+
[code]
|
39
|
+
```
|
40
40
|
|
41
41
|
### Options
|
42
42
|
|
@@ -127,28 +127,3 @@ More documentation coming soon.
|
|
127
127
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
128
128
|
4. Push to the branch (`git push origin my-new-feature`)
|
129
129
|
5. Create new Pull Request
|
130
|
-
|
131
|
-
## License MIT
|
132
|
-
|
133
|
-
Copyright (c) 2013 Brandon Mathis
|
134
|
-
|
135
|
-
MIT License
|
136
|
-
|
137
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
138
|
-
a copy of this software and associated documentation files (the
|
139
|
-
"Software"), to deal in the Software without restriction, including
|
140
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
141
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
142
|
-
permit persons to whom the Software is furnished to do so, subject to
|
143
|
-
the following conditions:
|
144
|
-
|
145
|
-
The above copyright notice and this permission notice shall be
|
146
|
-
included in all copies or substantial portions of the Software.
|
147
|
-
|
148
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
149
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
150
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
151
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
152
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
153
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
154
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/octopress-codefence.rb
CHANGED
@@ -16,6 +16,12 @@ module Octopress
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
class DocumentHook < Hooks::Document
|
20
|
+
def pre_render(document)
|
21
|
+
document.content = Codefence::Highlighter.new(document.content).render
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
19
25
|
class Highlighter
|
20
26
|
AllOptions = /([^\s]+)\s+(.+?)\s+(https?:\/\/\S+|\/\S+)\s*(.+)?/i
|
21
27
|
LangCaption = /([^\s]+)\s*(.+)?/i
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-codefence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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: 2015-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-code-highlighter
|
@@ -102,7 +102,6 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- ".clash.yml"
|
106
105
|
- ".gitignore"
|
107
106
|
- ".travis.yml"
|
108
107
|
- CHANGELOG.md
|
data/.clash.yml
DELETED