anecdote 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anecdote/version.rb +1 -1
- data/lib/anecdote.rb +5 -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: c83ded5a5623922b3ec090c3d9fd4b2feb761964
|
4
|
+
data.tar.gz: c5eba2a1defbda7fc6d7b653762b5fea686b56d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcdd018faa22a4736aac2233e16c7d022f9af7e9b35a246c2eb7c05943a07ea17461146faa083d40c09c68067e6cdfbc9daa43e6f64d754cfdc2f6d289c94bb5
|
7
|
+
data.tar.gz: 4b45db1069c999d4aaf74c9cd34442d24f0a1c936fd0a8886943233bb712201430521662c7bf1f88d61f14d58bbe0e691fcb91b77ed05d1e6a49863499bb1412
|
data/lib/anecdote/version.rb
CHANGED
data/lib/anecdote.rb
CHANGED
@@ -6,7 +6,11 @@ require "anecdote/engine"
|
|
6
6
|
module Anecdote
|
7
7
|
|
8
8
|
def self.markdown_and_parse(content="")
|
9
|
-
|
9
|
+
markdown_only( raconteur.parse(content) )
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.markdown_only(content)
|
13
|
+
::Kramdown::Document.new( content.presence || "", { input: :GFM } ).to_html.html_safe
|
10
14
|
end
|
11
15
|
|
12
16
|
def self.raconteur
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anecdote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Appleseed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|