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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ae8e55ce1ed47370595bc3520649ff4921fdbe
4
- data.tar.gz: bfd252bb79f1973284825991c0c52b680154998f
3
+ metadata.gz: c83ded5a5623922b3ec090c3d9fd4b2feb761964
4
+ data.tar.gz: c5eba2a1defbda7fc6d7b653762b5fea686b56d4
5
5
  SHA512:
6
- metadata.gz: fb3bc85bdd55951d9fe8825190a22e8a8e839b4c972ddcc455632ea6801017a2a928b9bd8ad6b978a1e5909508d6d6e05f56e07c022a410812b27b2b8441cb72
7
- data.tar.gz: 7db443b4374d34f08fb3ac50a4e75fbf8b0a1bfe6b134469b11a72702bbd3cd14671a5a58a0d570c2f9b895608abeb1821732613d81a8d07dcdae6b121c2fd10
6
+ metadata.gz: bcdd018faa22a4736aac2233e16c7d022f9af7e9b35a246c2eb7c05943a07ea17461146faa083d40c09c68067e6cdfbc9daa43e6f64d754cfdc2f6d289c94bb5
7
+ data.tar.gz: 4b45db1069c999d4aaf74c9cd34442d24f0a1c936fd0a8886943233bb712201430521662c7bf1f88d61f14d58bbe0e691fcb91b77ed05d1e6a49863499bb1412
@@ -1,3 +1,3 @@
1
1
  module Anecdote
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- ::Kramdown::Document.new( raconteur.parse(content), { input: :GFM } ).to_html.html_safe
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.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: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails