reverse_markdown 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/reverse_markdown.rb +10 -0
  2. metadata +3 -2
@@ -15,6 +15,16 @@ require 'nokogiri'
15
15
  class ReverseMarkdown
16
16
  attr_reader :errors
17
17
 
18
+ class << self
19
+ def parse_string(string)
20
+ new.parse_string(string)
21
+ end
22
+
23
+ def parse_element(element)
24
+ new.parse_element(element)
25
+ end
26
+ end
27
+
18
28
  # set basic variables:
19
29
  # - @li_counter: numbering list item (li) tags in an ordered list (ol)
20
30
  # - @links: hold the links for adding them to the bottom of the @output
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reverse_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
9
+ - Ben Woosley
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
13
+ date: 2012-07-13 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: nokogiri