mdopen 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mdopen/version.rb +1 -1
- data/lib/mdopen.rb +11 -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: 0e59eb873a884be0c8deb48888c4067aa3d9cfe6
|
4
|
+
data.tar.gz: f46cb2dbd470217c55248f7e4f4f05759ca19331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41becfc2f69aa54d628fdda51e1ba9ec77e4ceb010f40b2d914fe4d2162a0bc226c29baa6b12e4a8f3b0891b90aadb03e073dee53f5ec81626c8e553b0dc36de
|
7
|
+
data.tar.gz: d4315ee964fc4d3e1f80b50245b245d6222dc81d2ae3efd719f57360cea537c10197d124b8228511879fb0344b2e1dc1d5f3bfbb775222fff1fead65ae883afd
|
data/lib/mdopen/version.rb
CHANGED
data/lib/mdopen.rb
CHANGED
@@ -21,7 +21,17 @@ module Mdopen
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def md2html(md_file)
|
24
|
-
parser = Redcarpet::Markdown.new(
|
24
|
+
parser = Redcarpet::Markdown.new(
|
25
|
+
Redcarpet::Render::HTML.new,
|
26
|
+
fenced_code_blocks: true,
|
27
|
+
tables: true,
|
28
|
+
autolink: true,
|
29
|
+
space_after_headers: true,
|
30
|
+
highlight: true,
|
31
|
+
quote: true,
|
32
|
+
strikethrough: true,
|
33
|
+
superscript: true,
|
34
|
+
no_intra_emphasis: true)
|
25
35
|
parser.render(md_file)
|
26
36
|
end
|
27
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdopen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- B1nj0y
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|