hexp-kramdown 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hexp-kramdown.gemspec +1 -1
- data/lib/hexp/kramdown.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d460c24b8a84b77bafa5e3298ad92439eae245
|
4
|
+
data.tar.gz: ecd94483a2b4a5750ddaf015f646c5afe713e39e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e457759d1dc5d736ff4bb74723a18e68bf04187c7f43a0ccdbb27e99926a38eab337c8669baf41311c1c8378ccde34a2436293e0ce500daa7e766ff8742b9089
|
7
|
+
data.tar.gz: 95779a1362112568abe377ed3559d8c65778a0d8f273bf80f32e1426533c6b2f0960e71f1550ea884297b01506a66e1d0734d17f757c3854b3d456129fb662ce
|
data/hexp-kramdown.gemspec
CHANGED
data/lib/hexp/kramdown.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
require 'hexp'
|
2
2
|
require 'kramdown'
|
3
|
+
require 'hexp/kramdown/converter'
|
3
4
|
|
4
5
|
module Hexp
|
5
6
|
module Kramdown
|
6
|
-
def convert(document_or_element)
|
7
|
-
|
8
|
-
if document_or_element.is_a? Kramdown::Document
|
7
|
+
def self.convert(document_or_element)
|
8
|
+
Converter.new.convert(
|
9
|
+
if document_or_element.is_a? ::Kramdown::Document
|
9
10
|
document_or_element.root
|
10
11
|
else
|
11
12
|
document_or_element
|