markdown_presenter 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/markdown_presenter.rb +2 -1
- 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: bda859ef831ae64cf8677cbe10e52739a14cb424
|
4
|
+
data.tar.gz: 3e01651fb2dc647ff29f67144909127c00557cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 460f24c873c209f752d1dc4df60c88166b176eefdd54257981410c4c4bc55bbee0ddf9c5b7d9ce26b101aa73061e13c92fe1a34a166544747f6dc356e718fc0c
|
7
|
+
data.tar.gz: 58854630b08bce791b407307ac7eb66e6a554683b69ea69d5b6f2ea4074187e3c4af5fcea78413864dadb58d298d57c8b9cb0a584d6b54883529dc5deda46667
|
data/lib/markdown_presenter.rb
CHANGED
@@ -13,7 +13,8 @@ end
|
|
13
13
|
|
14
14
|
def content_of filename
|
15
15
|
if filename.end_with? ".md"
|
16
|
-
Kramdown::Document.new(File.read(filename))
|
16
|
+
document = Kramdown::Document.new(File.read(filename), parse_block_html: true, parse_span_html: true)
|
17
|
+
document.to_html
|
17
18
|
|
18
19
|
elsif filename.end_with? ".html"
|
19
20
|
require 'nokogiri'
|