markitdown 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +0 -2
- data/lib/markitdown.rb +1 -0
- data/lib/markitdown/version.rb +1 -1
- data/spec/doc.html +4 -0
- data/spec/doc_spec.rb +3 -0
- data/spec/nesting_spec.rb +6 -2
- data/spec/tag_spec.rb +2 -2
- metadata +4 -4
    
        data/.travis.yml
    CHANGED
    
    
    
        data/lib/markitdown.rb
    CHANGED
    
    
    
        data/lib/markitdown/version.rb
    CHANGED
    
    
    
        data/spec/doc.html
    CHANGED
    
    
    
        data/spec/doc_spec.rb
    CHANGED
    
    
    
        data/spec/nesting_spec.rb
    CHANGED
    
    | @@ -96,7 +96,9 @@ describe Markitdown do | |
| 96 96 | 
             
                  </blockquote>" }
         | 
| 97 97 | 
             
                it "should return valid markdown" do
         | 
| 98 98 | 
             
                  Markitdown.from_html(html).should == 
         | 
| 99 | 
            -
            " | 
| 99 | 
            +
            "
         | 
| 100 | 
            +
             | 
| 101 | 
            +
             > This is a quote with a list
         | 
| 100 102 | 
             
             >  * item 1
         | 
| 101 103 | 
             
             >  * item 2
         | 
| 102 104 | 
             
            "
         | 
| @@ -119,7 +121,9 @@ describe Markitdown do | |
| 119 121 | 
             
                  </blockquote>" }
         | 
| 120 122 | 
             
                it "should return valid markdown" do
         | 
| 121 123 | 
             
                  Markitdown.from_html(html).should == 
         | 
| 122 | 
            -
            " | 
| 124 | 
            +
            "
         | 
| 125 | 
            +
             | 
| 126 | 
            +
             > This is a quote with a list
         | 
| 123 127 | 
             
             >  * item [1.1](http://www.google.com) 
         | 
| 124 128 | 
             
             >    1. item [2.1](http://www.google.com) 
         | 
| 125 129 | 
             
             >    1. item 2.2
         | 
    
        data/spec/tag_spec.rb
    CHANGED
    
    | @@ -191,7 +191,7 @@ describe Markitdown do | |
| 191 191 | 
             
                let(:html) { "<blockquote>this is a block quote</blockquote>" }
         | 
| 192 192 |  | 
| 193 193 | 
             
                it "should return valid markdown" do
         | 
| 194 | 
            -
                  Markitdown.from_html(html).should == " > this is a block quote\n"
         | 
| 194 | 
            +
                  Markitdown.from_html(html).should == "\n\n > this is a block quote\n"
         | 
| 195 195 | 
             
                end
         | 
| 196 196 | 
             
              end
         | 
| 197 197 |  | 
| @@ -203,7 +203,7 @@ describe Markitdown do | |
| 203 203 | 
             
                </blockquote>" }
         | 
| 204 204 |  | 
| 205 205 | 
             
                it "should return valid markdown" do
         | 
| 206 | 
            -
                  Markitdown.from_html(html).should == " > line 1 line 2 line 3\n"
         | 
| 206 | 
            +
                  Markitdown.from_html(html).should == "\n\n > line 1 line 2 line 3\n"
         | 
| 207 207 | 
             
                end
         | 
| 208 208 | 
             
              end
         | 
| 209 209 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: markitdown
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.4
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2012-10- | 
| 12 | 
            +
            date: 2012-10-27 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: nokogiri
         | 
| @@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 93 93 | 
             
                  version: '0'
         | 
| 94 94 | 
             
                  segments:
         | 
| 95 95 | 
             
                  - 0
         | 
| 96 | 
            -
                  hash:  | 
| 96 | 
            +
                  hash: 73619145748567662
         | 
| 97 97 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 98 98 | 
             
              none: false
         | 
| 99 99 | 
             
              requirements:
         | 
| @@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 102 102 | 
             
                  version: '0'
         | 
| 103 103 | 
             
                  segments:
         | 
| 104 104 | 
             
                  - 0
         | 
| 105 | 
            -
                  hash:  | 
| 105 | 
            +
                  hash: 73619145748567662
         | 
| 106 106 | 
             
            requirements: []
         | 
| 107 107 | 
             
            rubyforge_project: 
         | 
| 108 108 | 
             
            rubygems_version: 1.8.24
         |