rollin 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rollin/article.rb +7 -6
- 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: f1f08424b6aa0754fe3ac1911e0e14325fb656c0
|
4
|
+
data.tar.gz: ec44591799d4d3d1754d33d3e88a783374312a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35098a90e5468154cf7abcf2b33de1404485e0235a78c5baeb948c5450b5adc52f41ab7c4e6f8c97547e6b94b2fec0da8c24f4f26e463ecd01234b6d3cb5664b
|
7
|
+
data.tar.gz: 51f989a668f92fd7f0165b0dd06241641f524493ae3af83dd929d36da0fa01ccf5d38171661cf5d799fe9be84922914fdf577845a4be6c7ea79fdb5e2105bad7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/rollin/article.rb
CHANGED
@@ -61,12 +61,13 @@ class Rollin::Article
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def body
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
html_renderer_options = { hard_wrap: false }
|
65
|
+
parser_options = { autolink: true,
|
66
|
+
space_after_headers: true,
|
67
|
+
fenced_code_blocks: true,
|
68
|
+
disable_indented_code_blocks: true }
|
69
|
+
render = Redcarpet::Render::HTML.new(html_renderer_options)
|
70
|
+
redcarpet = Redcarpet::Markdown.new(render, parser_options)
|
70
71
|
redcarpet.render(read_from_file.content)
|
71
72
|
end
|
72
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- marano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|