middleman-syntax 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/middleman-syntax/extension.rb +3 -7
- data/lib/middleman-syntax/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: 1a45717c68c5251ef83aeaae803378ce95dbcf4f
|
4
|
+
data.tar.gz: a671567f6cd311b77b7461cd39849ac21d8be6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444d66ce7c7e589cc7b9615e9c0983e1589470d11dcf7c1e790aac8d0b9a5ccd884dbdafa777b7da9c91568fb65ef87b57e8c6a56da2d1a5be506735637377f5
|
7
|
+
data.tar.gz: aee00d72c73b307aebc08b4a840d71e4b2ca2f027b082993178520016a9d2c63d74d47f0091cdf224699cbe6b8018fa23b4e18de83275745c42206331815049f
|
data/CHANGELOG.md
CHANGED
@@ -14,14 +14,11 @@ module Middleman
|
|
14
14
|
|
15
15
|
app.send :include, Helper
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
app.after_configuration do
|
18
|
+
if markdown_engine == :redcarpet
|
19
19
|
require 'middleman-core/renderers/redcarpet'
|
20
20
|
Middleman::Renderers::MiddlemanRedcarpetHTML.send :include, MarkdownCodeRenderer
|
21
|
-
|
22
|
-
end
|
23
|
-
else
|
24
|
-
begin
|
21
|
+
elsif markdown_engine == :kramdown
|
25
22
|
require 'kramdown'
|
26
23
|
Kramdown::Converter::Html.class_eval do
|
27
24
|
def convert_codeblock(el, indent)
|
@@ -30,7 +27,6 @@ module Middleman
|
|
30
27
|
Middleman::Syntax::Highlighter.highlight(el.value, language)
|
31
28
|
end
|
32
29
|
end
|
33
|
-
rescue LoadError
|
34
30
|
end
|
35
31
|
end
|
36
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Hollis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|