emd 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/markdown_template_handler.rb +7 -2
- data/lib/emd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e8dc43dfd6b92d9f64be7efb17ffeb7bd91e4499ee86864dde7b9c6ebd0c2e7
|
4
|
+
data.tar.gz: 2454b8a5241453b7f6f63111d3d954c737ca2430f2ab2195b83cfbd9bfa83519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b81bec64727eb98c3eeefdceaca3f03d4fb353f6109ceb55152fd211f75ba05e3bafcda10145210d8608d28781b7a4a53eb2e90288f58655fcc89a8abf4d715
|
7
|
+
data.tar.gz: 2cbfd17832dcb68f1f56969dc18563afb92769706b28ddf3126d9e168a396527cd2af02fedaf9cd17c6f7febeee6f463d06f6d793a0e7bfe9236c4e72b83d9c3
|
@@ -13,8 +13,13 @@ module MarkdownTemplateHandler
|
|
13
13
|
@erb ||= ActionView::Template.registered_template_handler(:erb)
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.call(template)
|
17
|
-
|
16
|
+
def self.call(template, source = nil)
|
17
|
+
|
18
|
+
compiled_source = if source
|
19
|
+
erb.call(template, source)
|
20
|
+
else
|
21
|
+
erb.call(template)
|
22
|
+
end
|
18
23
|
|
19
24
|
%(Redcarpet::Markdown.new(CodeRayify.new(:filter_html => false,
|
20
25
|
:hard_wrap => true),
|
data/lib/emd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|