maruku 0.5.9 → 0.6.0
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/bin/maruku +6 -1
- data/bin/marutest +25 -18
- data/lib/maruku.rb +3 -0
- data/lib/maruku/ext/div.rb +39 -6
- data/lib/maruku/ext/math/latex_fix.rb +1 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +9 -8
- data/lib/maruku/ext/math/parsing.rb +15 -1
- data/lib/maruku/ext/math/to_html.rb +34 -17
- data/lib/maruku/ext/math/to_latex.rb +4 -0
- data/lib/maruku/helpers.rb +3 -3
- data/lib/maruku/input/charsource.rb +1 -1
- data/lib/maruku/input/parse_block.rb +1 -0
- data/lib/maruku/input/parse_doc.rb +12 -5
- data/lib/maruku/input/parse_span_better.rb +24 -10
- data/lib/maruku/output/s5/to_s5.rb +14 -1
- data/lib/maruku/output/to_html.rb +20 -1
- data/lib/maruku/output/to_latex.rb +27 -0
- data/lib/maruku/output/to_latex_entities.rb +2 -2
- data/lib/maruku/output/to_s.rb +5 -2
- data/lib/maruku/string_utils.rb +2 -2
- data/lib/maruku/structures.rb +2 -0
- data/lib/maruku/tests/new_parser.rb +5 -2
- data/lib/maruku/version.rb +1 -1
- data/tests/bugs/code_in_links.md +85 -0
- data/tests/bugs/complex_escaping.md +34 -0
- data/tests/unittest/abbreviations.md +2 -10
- data/tests/unittest/alt.md +2 -3
- data/tests/unittest/attributes/att2.md +2 -4
- data/tests/unittest/attributes/att3.md +2 -7
- data/tests/unittest/attributes/attributes.md +2 -15
- data/tests/unittest/attributes/circular.md +2 -7
- data/tests/unittest/attributes/default.md +2 -6
- data/tests/unittest/blank.md +2 -5
- data/tests/unittest/blanks_in_code.md +2 -21
- data/tests/unittest/bug_def.md +2 -3
- data/tests/unittest/bug_table.md +2 -11
- data/tests/unittest/code.md +2 -9
- data/tests/unittest/code2.md +2 -8
- data/tests/unittest/code3.md +2 -21
- data/tests/unittest/data_loss.md +2 -7
- data/tests/unittest/divs/div1.md +32 -57
- data/tests/unittest/divs/div2.md +6 -7
- data/tests/unittest/divs/div3_nest.md +8 -13
- data/tests/unittest/easy.md +2 -3
- data/tests/unittest/email.md +2 -3
- data/tests/unittest/encoding/iso-8859-1.md +2 -5
- data/tests/unittest/encoding/utf-8.md +2 -5
- data/tests/unittest/entities.md +2 -20
- data/tests/unittest/escaping.md +2 -12
- data/tests/unittest/extra_dl.md +2 -10
- data/tests/unittest/extra_header_id.md +2 -13
- data/tests/unittest/extra_table1.md +2 -8
- data/tests/unittest/footnotes.md +2 -19
- data/tests/{bugs/html.md → unittest/hang.md} +9 -9
- data/tests/unittest/headers.md +2 -7
- data/tests/unittest/hex_entities.md +2 -3
- data/tests/unittest/hrule.md +2 -11
- data/tests/unittest/html2.md +2 -6
- data/tests/unittest/html3.md +2 -6
- data/tests/unittest/html4.md +2 -7
- data/tests/unittest/html5.md +2 -5
- data/tests/unittest/ie.md +2 -23
- data/tests/unittest/images.md +2 -14
- data/tests/unittest/images2.md +2 -5
- data/tests/unittest/inline_html.md +6 -102
- data/tests/unittest/inline_html2.md +2 -5
- data/tests/unittest/links.md +17 -50
- data/tests/unittest/links2.md +2 -3
- data/tests/unittest/list1.md +2 -10
- data/tests/unittest/list12.md +2 -5
- data/tests/unittest/list2.md +2 -10
- data/tests/unittest/list3.md +2 -14
- data/tests/unittest/list4.md +2 -17
- data/tests/unittest/lists.md +2 -39
- data/tests/unittest/lists10.md +2 -7
- data/tests/unittest/lists11.md +2 -5
- data/tests/unittest/lists6.md +2 -3
- data/tests/unittest/lists9.md +2 -11
- data/tests/unittest/lists_after_paragraph.md +3 -51
- data/tests/unittest/lists_ol.md +2 -52
- data/tests/unittest/loss.md +2 -3
- data/tests/unittest/math/equations.md +54 -37
- data/tests/unittest/math/inline.md +4 -12
- data/tests/unittest/math/math2.md +4 -57
- data/tests/unittest/math/notmath.md +2 -5
- data/tests/unittest/math/table.md +5 -11
- data/tests/unittest/math/table2.md +2 -8
- data/tests/unittest/misc_sw.md +2 -80
- data/tests/unittest/notyet/escape.md +2 -5
- data/tests/unittest/notyet/header_after_par.md +2 -13
- data/tests/unittest/notyet/ticks.md +2 -3
- data/tests/unittest/notyet/triggering.md +2 -39
- data/tests/unittest/olist.md +2 -9
- data/tests/unittest/one.md +2 -3
- data/tests/unittest/paragraph.md +2 -3
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +2 -5
- data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -5
- data/tests/unittest/paragraphs.md +2 -10
- data/tests/unittest/pending/amps.md +2 -4
- data/tests/unittest/pending/empty_cells.md +2 -6
- data/tests/unittest/pending/link.md +2 -21
- data/tests/unittest/pending/ref.md +2 -3
- data/tests/unittest/recover/recover_links.md +7 -8
- data/tests/{bugs → unittest/red_tests}/abbrev.md +12 -103
- data/tests/unittest/{lists7.md → red_tests/lists7.md} +2 -13
- data/tests/unittest/{lists7b.md → red_tests/lists7b.md} +2 -10
- data/tests/unittest/{lists8.md → red_tests/lists8.md} +2 -9
- data/tests/unittest/red_tests/xml.md +70 -0
- data/tests/unittest/references/long_example.md +2 -7
- data/tests/unittest/references/spaces_and_numbers.md +2 -3
- data/tests/unittest/smartypants.md +2 -47
- data/tests/unittest/syntax_hl.md +2 -18
- data/tests/unittest/table_attributes.md +2 -8
- data/tests/unittest/test.md +2 -3
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +2 -11
- data/tests/unittest/xml2.md +2 -5
- data/tests/unittest/xml3.md +2 -8
- data/tests/unittest/xml_instruction.md +2 -10
- data/unit_test_span.sh +2 -1
- metadata +242 -241
- data/docs/changelog.html +0 -490
- data/docs/entity_test.html +0 -258
- data/docs/exd.html +0 -307
- data/docs/index.html +0 -332
- data/docs/markdown_syntax.html +0 -690
- data/docs/maruku.html +0 -332
- data/docs/proposal.html +0 -326
- data/docs/tmp.md +0 -2
- data/lib/sort_prof.rb +0 -22
- data/tests/bugs/links.md +0 -47
- data/tests/diagrams/diagrams.md +0 -302
- data/tests/s5/a.md +0 -13
- data/tests/s5/instiki+s5.md +0 -105
- data/tests/unittest/xml.md +0 -54
| @@ -70,17 +70,6 @@ Header 1Header 2Header 3Then you can create links to different parts of the same | |
| 70 70 |  | 
| 71 71 |  | 
| 72 72 | 
             
            *** Output of Markdown.pl ***
         | 
| 73 | 
            -
             | 
| 74 | 
            -
             | 
| 75 | 
            -
            <h2>Header 2            {#header2}</h2>
         | 
| 76 | 
            -
             | 
| 77 | 
            -
            <h3>Header 3 ###      {#header3}</h3>
         | 
| 78 | 
            -
             | 
| 79 | 
            -
            <p>Then you can create links to different parts of the same document like this:</p>
         | 
| 80 | 
            -
             | 
| 81 | 
            -
            <p><a href="#header1">Link back to header 1</a>,
         | 
| 82 | 
            -
            <a href="#header2">Link back to header 2</a>,
         | 
| 83 | 
            -
            <a href="#header3">Link back to header 3</a></p>
         | 
| 84 | 
            -
             | 
| 73 | 
            +
            (not used anymore)
         | 
| 85 74 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 86 | 
            -
             | 
| 75 | 
            +
            (not used anymore)
         | 
| @@ -44,12 +44,6 @@ First HeaderSecond HeaderContent CellContent CellContent CellContent Cell | |
| 44 44 |  | 
| 45 45 |  | 
| 46 46 | 
             
            *** Output of Markdown.pl ***
         | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 | 
            -
            <p>First Header  | Second Header
         | 
| 50 | 
            -
            ------------- | -------------
         | 
| 51 | 
            -
            Content Cell  | Content Cell
         | 
| 52 | 
            -
            Content Cell  | Content Cell</p>
         | 
| 53 | 
            -
             | 
| 47 | 
            +
            (not used anymore)
         | 
| 54 48 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 55 | 
            -
             | 
| 49 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/footnotes.md
    CHANGED
    
    | @@ -104,23 +104,6 @@ Thats some text with a footnote  and another  and another .And thats the footnot | |
| 104 104 |  | 
| 105 105 |  | 
| 106 106 | 
             
            *** Output of Markdown.pl ***
         | 
| 107 | 
            -
             | 
| 108 | 
            -
             | 
| 109 | 
            -
            <p>[^a]: And that's the footnote.</p>
         | 
| 110 | 
            -
             | 
| 111 | 
            -
            <pre><code>That's the second paragraph of the footnote.
         | 
| 112 | 
            -
            </code></pre>
         | 
| 113 | 
            -
             | 
| 114 | 
            -
            <p>[^b]: And that's the footnote.
         | 
| 115 | 
            -
            This is second sentence (same paragraph).</p>
         | 
| 116 | 
            -
             | 
| 117 | 
            -
            <p>[^c]:
         | 
| 118 | 
            -
                This is the very long one.</p>
         | 
| 119 | 
            -
             | 
| 120 | 
            -
            <pre><code>That's the second paragraph.
         | 
| 121 | 
            -
            </code></pre>
         | 
| 122 | 
            -
             | 
| 123 | 
            -
            <p>This is not a footnote.</p>
         | 
| 124 | 
            -
             | 
| 107 | 
            +
            (not used anymore)
         | 
| 125 108 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 126 | 
            -
             | 
| 109 | 
            +
            (not used anymore)
         | 
| @@ -2,18 +2,19 @@ Write a comment here | |
| 2 2 | 
             
            *** Parameters: ***
         | 
| 3 3 | 
             
            {} # params 
         | 
| 4 4 | 
             
            *** Markdown input: ***
         | 
| 5 | 
            -
             | 
| 5 | 
            +
            deded  {.num_defn #IsbellDuality
         | 
| 6 | 
            +
            	
         | 
| 6 7 |  | 
| 7 8 | 
             
            *** Output of inspect ***
         | 
| 8 | 
            -
            md_el(:document,[md_par([" | 
| 9 | 
            +
            md_el(:document,[md_par(["deded"])],{},[])
         | 
| 9 10 | 
             
            *** Output of to_html ***
         | 
| 10 | 
            -
            <p> | 
| 11 | 
            +
            <p>deded</p>
         | 
| 11 12 | 
             
            *** Output of to_latex ***
         | 
| 12 | 
            -
             | 
| 13 | 
            +
            deded
         | 
| 13 14 | 
             
            *** Output of to_md ***
         | 
| 14 | 
            -
             | 
| 15 | 
            +
            deded
         | 
| 15 16 | 
             
            *** Output of to_s ***
         | 
| 16 | 
            -
             | 
| 17 | 
            +
            deded
         | 
| 17 18 | 
             
            *** EOF ***
         | 
| 18 19 |  | 
| 19 20 |  | 
| @@ -23,7 +24,6 @@ a < b | |
| 23 24 |  | 
| 24 25 |  | 
| 25 26 | 
             
            *** Output of Markdown.pl ***
         | 
| 26 | 
            -
             | 
| 27 | 
            -
             | 
| 27 | 
            +
            (not used anymore)
         | 
| 28 28 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 29 | 
            -
             | 
| 29 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/headers.md
    CHANGED
    
    | @@ -44,11 +44,6 @@ A title with emphasisA title with emphasisA title with emphasis | |
| 44 44 |  | 
| 45 45 |  | 
| 46 46 | 
             
            *** Output of Markdown.pl ***
         | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 | 
            -
            <h2>A title with <em>emphasis</em></h2>
         | 
| 50 | 
            -
             | 
| 51 | 
            -
            <h4>A title with <em>emphasis</em></h4>
         | 
| 52 | 
            -
             | 
| 47 | 
            +
            (not used anymore)
         | 
| 53 48 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 54 | 
            -
             | 
| 49 | 
            +
            (not used anymore)
         | 
| @@ -44,7 +44,6 @@ Examples of numeric character references include  or  for the copyright symbol, | |
| 44 44 |  | 
| 45 45 |  | 
| 46 46 | 
             
            *** Output of Markdown.pl ***
         | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 47 | 
            +
            (not used anymore)
         | 
| 49 48 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 50 | 
            -
             | 
| 49 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/hrule.md
    CHANGED
    
    | @@ -46,15 +46,6 @@ md_el(:document,[ | |
| 46 46 |  | 
| 47 47 |  | 
| 48 48 | 
             
            *** Output of Markdown.pl ***
         | 
| 49 | 
            -
             | 
| 50 | 
            -
             | 
| 51 | 
            -
            <hr />
         | 
| 52 | 
            -
             | 
| 53 | 
            -
            <hr />
         | 
| 54 | 
            -
             | 
| 55 | 
            -
            <hr />
         | 
| 56 | 
            -
             | 
| 57 | 
            -
            <hr />
         | 
| 58 | 
            -
             | 
| 49 | 
            +
            (not used anymore)
         | 
| 59 50 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 60 | 
            -
             | 
| 51 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/html2.md
    CHANGED
    
    | @@ -29,10 +29,6 @@ One 123 | |
| 29 29 |  | 
| 30 30 |  | 
| 31 31 | 
             
            *** Output of Markdown.pl ***
         | 
| 32 | 
            -
             | 
| 33 | 
            -
            <div></div>123</p>
         | 
| 34 | 
            -
             | 
| 35 | 
            -
            <p><div></div>123</p>
         | 
| 36 | 
            -
             | 
| 32 | 
            +
            (not used anymore)
         | 
| 37 33 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 38 | 
            -
             | 
| 34 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/html3.md
    CHANGED
    
    | @@ -38,10 +38,6 @@ taking part in  which involve , , , | |
| 38 38 |  | 
| 39 39 |  | 
| 40 40 | 
             
            *** Output of Markdown.pl ***
         | 
| 41 | 
            -
             | 
| 42 | 
            -
            involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>, 
         | 
| 43 | 
            -
            <a href="http://flickr.com/photos/censi/42775664/in/set-936677/">robots</a>,
         | 
| 44 | 
            -
            <a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,</p>
         | 
| 45 | 
            -
             | 
| 41 | 
            +
            (not used anymore)
         | 
| 46 42 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 47 | 
            -
             | 
| 43 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/html4.md
    CHANGED
    
    | @@ -32,11 +32,6 @@ md_el(:document,[ | |
| 32 32 |  | 
| 33 33 |  | 
| 34 34 | 
             
            *** Output of Markdown.pl ***
         | 
| 35 | 
            -
             | 
| 36 | 
            -
                <a  class="photo" href="http://www.flickr.com/photos/censi/54757256/"><img alt=""
         | 
| 37 | 
            -
              moz-do-not-send="true"
         | 
| 38 | 
            -
              src="http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg" /></a>
         | 
| 39 | 
            -
            </div>
         | 
| 40 | 
            -
             | 
| 35 | 
            +
            (not used anymore)
         | 
| 41 36 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 42 | 
            -
             | 
| 37 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/html5.md
    CHANGED
    
    | @@ -30,9 +30,6 @@ md_el(:document,[ | |
| 30 30 |  | 
| 31 31 |  | 
| 32 32 | 
             
            *** Output of Markdown.pl ***
         | 
| 33 | 
            -
             | 
| 34 | 
            -
             <a class="photo" href="http://www.flickr.com/photos/censi/88561568/" ><img moz-do-not-send="true" src="http://static.flickr.com/28/88561568_ab84d28245_m.jpg" width="240" height="180" alt="Aperitif" /></a>
         | 
| 35 | 
            -
             </div></p>
         | 
| 36 | 
            -
             | 
| 33 | 
            +
            (not used anymore)
         | 
| 37 34 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 38 | 
            -
             | 
| 35 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/ie.md
    CHANGED
    
    | @@ -56,27 +56,6 @@ md_el(:document,[ | |
| 56 56 |  | 
| 57 57 |  | 
| 58 58 | 
             
            *** Output of Markdown.pl ***
         | 
| 59 | 
            -
             | 
| 60 | 
            -
             | 
| 61 | 
            -
            <pre><code><p>here's an apostrophe & a quote "</p>
         | 
| 62 | 
            -
            </code></pre>
         | 
| 63 | 
            -
             | 
| 64 | 
            -
            <p>{:}</p>
         | 
| 65 | 
            -
             | 
| 66 | 
            -
            <pre><code><p>here's an apostrophe & a quote "</p>
         | 
| 67 | 
            -
            </code></pre>
         | 
| 68 | 
            -
             | 
| 69 | 
            -
            <p>{:lang=xml}</p>
         | 
| 70 | 
            -
             | 
| 71 | 
            -
            <pre><code><p>here's an apostrophe & a quote "</p>
         | 
| 72 | 
            -
            </code></pre>
         | 
| 73 | 
            -
             | 
| 74 | 
            -
            <p>{:html<em>use</em>syntax=true lang=not_supported}</p>
         | 
| 75 | 
            -
             | 
| 76 | 
            -
            <pre><code><p>here's an apostrophe & a quote "</p>
         | 
| 77 | 
            -
            </code></pre>
         | 
| 78 | 
            -
             | 
| 79 | 
            -
            <p>{:html<em>use</em>syntax=true lang=xml}</p>
         | 
| 80 | 
            -
             | 
| 59 | 
            +
            (not used anymore)
         | 
| 81 60 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 82 | 
            -
             | 
| 61 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/images.md
    CHANGED
    
    | @@ -97,18 +97,6 @@ This page does not uilizes Cascading Style SheetsPlease mouseover to see the tit | |
| 97 97 |  | 
| 98 98 |  | 
| 99 99 | 
             
            *** Output of Markdown.pl ***
         | 
| 100 | 
            -
             | 
| 101 | 
            -
             | 
| 102 | 
            -
            <p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
         | 
| 103 | 
            -
             | 
| 104 | 
            -
            <p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
         | 
| 105 | 
            -
             | 
| 106 | 
            -
            <p>I'll say it one more time: this page does not use <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Optional title attribute" /></p>
         | 
| 107 | 
            -
             | 
| 108 | 
            -
            <p>This is double size: ![Cascading Style Sheets] [css2]</p>
         | 
| 109 | 
            -
             | 
| 110 | 
            -
            <p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
         | 
| 111 | 
            -
               style="border:0;width:188px;height:131px"</p>
         | 
| 112 | 
            -
             | 
| 100 | 
            +
            (not used anymore)
         | 
| 113 101 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 114 | 
            -
             | 
| 102 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/images2.md
    CHANGED
    
    | @@ -38,9 +38,6 @@ This is an image.This is an image. | |
| 38 38 |  | 
| 39 39 |  | 
| 40 40 | 
             
            *** Output of Markdown.pl ***
         | 
| 41 | 
            -
             | 
| 42 | 
            -
             | 
| 43 | 
            -
            <p>This is an ![image].</p>
         | 
| 44 | 
            -
             | 
| 41 | 
            +
            (not used anymore)
         | 
| 45 42 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 46 | 
            -
             | 
| 43 | 
            +
            (not used anymore)
         | 
| @@ -37,20 +37,12 @@ Without closing: | |
| 37 37 |  | 
| 38 38 | 
             
            <table>
         | 
| 39 39 | 
             
            <tr>
         | 
| 40 | 
            -
            <td markdown="1">This is *true* markdown text. (no par)</td>
         | 
| 40 | 
            +
            <td markdown="1">This is a *true* markdown text. (no par)</td>
         | 
| 41 41 | 
             
            <td markdown="block">This is *true* markdown text. (par)</td>
         | 
| 42 42 | 
             
            </tr>
         | 
| 43 43 | 
             
            </table>
         | 
| 44 44 |  | 
| 45 45 |  | 
| 46 | 
            -
            The following is invalid HTML, and will generate an error:
         | 
| 47 | 
            -
             | 
| 48 | 
            -
            <table>
         | 
| 49 | 
            -
            <td markdown="1">This is *true* markdown text. (no par)</td>
         | 
| 50 | 
            -
            <td markdown="block">This is *true* markdown text. (par)</td>
         | 
| 51 | 
            -
            </tr>
         | 
| 52 | 
            -
            </table>
         | 
| 53 | 
            -
             | 
| 54 46 |  | 
| 55 47 | 
             
            *** Output of inspect ***
         | 
| 56 48 | 
             
            md_el(:document,[
         | 
| @@ -68,10 +60,7 @@ md_el(:document,[ | |
| 68 60 | 
             
            	md_par(["Without closing:"]),
         | 
| 69 61 | 
             
            	md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
         | 
| 70 62 | 
             
            	md_html("<div markdown=\"1\">\n\tThis is *true* markdown text (paragraph)\n\n\t<p markdown=\"1\">\n\t\tThis is *true* markdown text (no paragraph)\n\t</p>\n\t<p markdown=\"block\">\n\t\tThis is *true* markdown text (block paragraph)\n\t</p>\n</div>"),
         | 
| 71 | 
            -
            	md_html("<table>\n<tr>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>") | 
| 72 | 
            -
            	md_par(["The following is invalid HTML, and will generate an error:"]),
         | 
| 73 | 
            -
            	md_html("<table>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>"),
         | 
| 74 | 
            -
            	md_html("</table>")
         | 
| 63 | 
            +
            	md_html("<table>\n<tr>\n<td markdown=\"1\">This is a *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>")
         | 
| 75 64 | 
             
            ],{},[])
         | 
| 76 65 | 
             
            *** Output of to_html ***
         | 
| 77 66 | 
             
            <p>Input:</p>
         | 
| @@ -118,7 +107,7 @@ md_el(:document,[ | |
| 118 107 | 
             
            </div><table>
         | 
| 119 108 | 
             
            <tr>
         | 
| 120 109 | 
             
            <td>
         | 
| 121 | 
            -
            <p>This is</p>
         | 
| 110 | 
            +
            <p>This is a</p>
         | 
| 122 111 | 
             
            <em>
         | 
| 123 112 | 
             
            <p>true</p>
         | 
| 124 113 | 
             
            </em>
         | 
| @@ -133,13 +122,6 @@ md_el(:document,[ | |
| 133 122 | 
             
            </td>
         | 
| 134 123 | 
             
            </tr>
         | 
| 135 124 | 
             
            </table>
         | 
| 136 | 
            -
            <p>The following is invalid HTML, and will generate an error:</p>
         | 
| 137 | 
            -
            <pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error: 
         | 
| 138 | 
            -
            <table>
         | 
| 139 | 
            -
            <td markdown="1">This is *true* markdown text. (no par)</td>
         | 
| 140 | 
            -
            <td markdown="block">This is *true* markdown text. (par)</td>
         | 
| 141 | 
            -
            </tr></pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error: 
         | 
| 142 | 
            -
            </table></pre>
         | 
| 143 125 | 
             
            *** Output of to_latex ***
         | 
| 144 126 | 
             
            Input:
         | 
| 145 127 |  | 
| @@ -154,8 +136,6 @@ Result on span: | |
| 154 136 | 
             
            Result alone:
         | 
| 155 137 |  | 
| 156 138 | 
             
            Without closing:
         | 
| 157 | 
            -
             | 
| 158 | 
            -
            The following is invalid HTML, and will generate an error:
         | 
| 159 139 | 
             
            *** Output of to_md ***
         | 
| 160 140 | 
             
            Input:
         | 
| 161 141 |  | 
| @@ -168,11 +148,8 @@ Result on span: | |
| 168 148 | 
             
            Result alone:
         | 
| 169 149 |  | 
| 170 150 | 
             
            Without closing:
         | 
| 171 | 
            -
             | 
| 172 | 
            -
            The following is invalid HTML, and will
         | 
| 173 | 
            -
            generate an error:
         | 
| 174 151 | 
             
            *** Output of to_s ***
         | 
| 175 | 
            -
            Input:Result: Input:Result on span: Result alone:Without closing: | 
| 152 | 
            +
            Input:Result: Input:Result on span: Result alone:Without closing:
         | 
| 176 153 | 
             
            *** EOF ***
         | 
| 177 154 |  | 
| 178 155 |  | 
| @@ -182,79 +159,6 @@ Input:Result: Input:Result on span: Result alone:Without closing:The following i | |
| 182 159 |  | 
| 183 160 |  | 
| 184 161 | 
             
            *** Output of Markdown.pl ***
         | 
| 185 | 
            -
             | 
| 186 | 
            -
             | 
| 187 | 
            -
            <p>Input:</p>
         | 
| 188 | 
            -
             | 
| 189 | 
            -
            <pre><code><em>Emphasis</em>
         | 
| 190 | 
            -
            </code></pre>
         | 
| 191 | 
            -
             | 
| 192 | 
            -
            <p>Result: <em>Emphasis</em></p>
         | 
| 193 | 
            -
             | 
| 194 | 
            -
            <p>Input:</p>
         | 
| 195 | 
            -
             | 
| 196 | 
            -
            <pre><code><img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
         | 
| 197 | 
            -
            </code></pre>
         | 
| 198 | 
            -
             | 
| 199 | 
            -
            <p>Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
         | 
| 200 | 
            -
             | 
| 201 | 
            -
            <p>Result alone: </p>
         | 
| 202 | 
            -
             | 
| 203 | 
            -
            <p><img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
         | 
| 204 | 
            -
             | 
| 205 | 
            -
            <p>Without closing:</p>
         | 
| 206 | 
            -
             | 
| 207 | 
            -
            <p><img src="http://jigsaw.w3.org/css-validator/images/vcss"></p>
         | 
| 208 | 
            -
             | 
| 209 | 
            -
            <div markdown="1">
         | 
| 210 | 
            -
                This is *true* markdown text (paragraph)
         | 
| 211 | 
            -
             | 
| 212 | 
            -
                <p markdown="1">
         | 
| 213 | 
            -
                    This is *true* markdown text (no paragraph)
         | 
| 214 | 
            -
                </p>
         | 
| 215 | 
            -
                <p markdown="block">
         | 
| 216 | 
            -
                    This is *true* markdown text (block paragraph)
         | 
| 217 | 
            -
                </p>
         | 
| 218 | 
            -
            </div>
         | 
| 219 | 
            -
             | 
| 220 | 
            -
            <table>
         | 
| 221 | 
            -
            <tr>
         | 
| 222 | 
            -
            <td markdown="1">This is *true* markdown text. (no par)</td>
         | 
| 223 | 
            -
            <td markdown="block">This is *true* markdown text. (par)</td>
         | 
| 224 | 
            -
            </tr>
         | 
| 225 | 
            -
            </table>
         | 
| 226 | 
            -
             | 
| 227 | 
            -
            <p>The following is invalid HTML, and will generate an error:</p>
         | 
| 228 | 
            -
             | 
| 229 | 
            -
            <table>
         | 
| 230 | 
            -
            <td markdown="1">This is *true* markdown text. (no par)</td>
         | 
| 231 | 
            -
            <td markdown="block">This is *true* markdown text. (par)</td>
         | 
| 232 | 
            -
            </tr>
         | 
| 233 | 
            -
            </table>
         | 
| 234 | 
            -
             | 
| 162 | 
            +
            (not used anymore)
         | 
| 235 163 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 236 | 
            -
             | 
| 237 | 
            -
            Line: 
         | 
| 238 | 
            -
            Position: 
         | 
| 239 | 
            -
            Last 80 unconsumed characters:
         | 
| 240 | 
            -
              <div markdown="1">     This is *true* markdown text (paragraph)      <p markdow>
         | 
| 241 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
         | 
| 242 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
         | 
| 243 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:190:in `build'
         | 
| 244 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
         | 
| 245 | 
            -
            bin/marutest:199:in `new'
         | 
| 246 | 
            -
            bin/marutest:199:in `run_test'
         | 
| 247 | 
            -
            bin/marutest:262:in `marutest'
         | 
| 248 | 
            -
            bin/marutest:259:in `each'
         | 
| 249 | 
            -
            bin/marutest:259:in `marutest'
         | 
| 250 | 
            -
            bin/marutest:334
         | 
| 251 | 
            -
            ...
         | 
| 252 | 
            -
            Missing end tag for 'img' (got "p")
         | 
| 253 | 
            -
            Line: 
         | 
| 254 | 
            -
            Position: 
         | 
| 255 | 
            -
            Last 80 unconsumed characters:
         | 
| 256 | 
            -
              <div markdown="1">     This is *true* markdown text (paragraph)      <p markdow
         | 
| 257 | 
            -
            Line: 
         | 
| 258 | 
            -
            Position: 
         | 
| 259 | 
            -
            Last 80 unconsumed characters:
         | 
| 260 | 
            -
              <div markdown="1">     This is *true* markdown text (paragraph)      <p markdow>
         | 
| 164 | 
            +
            (not used anymore)
         | 
| @@ -28,9 +28,6 @@ md_el(:document,[ | |
| 28 28 |  | 
| 29 29 |  | 
| 30 30 | 
             
            *** Output of Markdown.pl ***
         | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 33 | 
            -
            <p markdown="1">Test **bold**</p>
         | 
| 34 | 
            -
             | 
| 31 | 
            +
            (not used anymore)
         | 
| 35 32 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 36 | 
            -
             | 
| 33 | 
            +
            (not used anymore)
         | 
    
        data/tests/unittest/links.md
    CHANGED
    
    | @@ -24,7 +24,9 @@ Search on <http://www.gogole.com> or <http://Here.com> or ask <mailto:bill@googl | |
| 24 24 | 
             
            or you might ask bill@google.com.
         | 
| 25 25 |  | 
| 26 26 | 
             
            If all else fails, ask [Google](http://www.google.com)
         | 
| 27 | 
            -
             | 
| 27 | 
            +
             | 
| 28 | 
            +
            And now [reference-style link ID with spaces] [Google Images]
         | 
| 29 | 
            +
             | 
| 28 30 | 
             
            [google]: http://www.google.com
         | 
| 29 31 |  | 
| 30 32 | 
             
            [google2]: http://www.google.com 'Single quotes'
         | 
| @@ -67,6 +69,10 @@ md_el(:document,[ | |
| 67 69 | 
             
            		"If all else fails, ask ",
         | 
| 68 70 | 
             
            		md_im_link(["Google"], "http://www.google.com", nil)
         | 
| 69 71 | 
             
            	]),
         | 
| 72 | 
            +
            	md_par([
         | 
| 73 | 
            +
            		"And now ",
         | 
| 74 | 
            +
            		md_link(["reference-style link ID with spaces"],"google_images")
         | 
| 75 | 
            +
            	]),
         | 
| 70 76 | 
             
            	md_ref_def("google", "http://www.google.com", {:title=>nil}),
         | 
| 71 77 | 
             
            	md_ref_def("google2", "http://www.google.com", {:title=>"Single quotes"}),
         | 
| 72 78 | 
             
            	md_ref_def("google3", "http://www.google.com", {:title=>"Double quotes"}),
         | 
| @@ -94,6 +100,8 @@ md_el(:document,[ | |
| 94 100 | 
             
            <p>Search on <a href='http://www.gogole.com'>http://www.gogole.com</a> or <a href='http://Here.com'>http://Here.com</a> or ask <a href='mailto:bill@google.com'>bill@google.com</a> or you might ask bill@google.com.</p>
         | 
| 95 101 |  | 
| 96 102 | 
             
            <p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
         | 
| 103 | 
            +
             | 
| 104 | 
            +
            <p>And now <a href='http://images.google.com' title='Google images'>reference-style link ID with spaces</a></p>
         | 
| 97 105 | 
             
            *** Output of to_latex ***
         | 
| 98 106 | 
             
            Search on \href{http://www.google.com}{Google}
         | 
| 99 107 |  | 
| @@ -114,6 +122,8 @@ Inline with title: \href{http://google.com}{Google images} | |
| 114 122 | 
             
            Search on \href{http://www.gogole.com}{http\char58\char47\char47www\char46gogole\char46com} or \href{http://Here.com}{http\char58\char47\char47Here\char46com} or ask \href{mailto:bill@google.com}{bill\char64google\char46com} or you might ask bill@google.com.
         | 
| 115 123 |  | 
| 116 124 | 
             
            If all else fails, ask \href{http://www.google.com}{Google}
         | 
| 125 | 
            +
             | 
| 126 | 
            +
            And now \href{http://images.google.com}{reference-style link ID with spaces}
         | 
| 117 127 | 
             
            *** Output of to_md ***
         | 
| 118 128 | 
             
            Search on Google
         | 
| 119 129 |  | 
| @@ -135,8 +145,11 @@ Search on or or ask or you might ask | |
| 135 145 | 
             
            bill@google.com.
         | 
| 136 146 |  | 
| 137 147 | 
             
            If all else fails, ask Google
         | 
| 148 | 
            +
             | 
| 149 | 
            +
            And now
         | 
| 150 | 
            +
            reference-style link ID with spaces
         | 
| 138 151 | 
             
            *** Output of to_s ***
         | 
| 139 | 
            -
            Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on  or  or ask  or you might ask bill@google.com.If all else fails, ask  | 
| 152 | 
            +
            Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on  or  or ask  or you might ask bill@google.com.If all else fails, ask GoogleAnd now reference-style link ID with spaces
         | 
| 140 153 | 
             
            *** EOF ***
         | 
| 141 154 |  | 
| 142 155 |  | 
| @@ -146,52 +159,6 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google | |
| 146 159 |  | 
| 147 160 |  | 
| 148 161 | 
             
            *** Output of Markdown.pl ***
         | 
| 149 | 
            -
             | 
| 150 | 
            -
             | 
| 151 | 
            -
            <p>Search on <a href="http://www.google.com">Google</a></p>
         | 
| 152 | 
            -
             | 
| 153 | 
            -
            <p>Search on <a href="http://www.google.com">Google</a></p>
         | 
| 154 | 
            -
             | 
| 155 | 
            -
            <p>Search on <a href="http://www.google.com">Google</a></p>
         | 
| 156 | 
            -
             | 
| 157 | 
            -
            <p>Search on <a href="http://images.google.com" title="Google images">Google images</a></p>
         | 
| 158 | 
            -
             | 
| 159 | 
            -
            <p>Inline: <a href="http://google.com">Google images</a></p>
         | 
| 160 | 
            -
             | 
| 161 | 
            -
            <p>Inline with title: <a href="http://google.com" title="Title">Google images</a></p>
         | 
| 162 | 
            -
             | 
| 163 | 
            -
            <p>Inline with title: <a href="http://google.com  "Title"">Google images</a></p>
         | 
| 164 | 
            -
             | 
| 165 | 
            -
            <p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="mailto:bill@google.com">bill@google.com</a>
         | 
| 166 | 
            -
            or you might ask bill@google.com.</p>
         | 
| 167 | 
            -
             | 
| 168 | 
            -
            <p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
         | 
| 169 | 
            -
             | 
| 170 | 
            -
            <p>[google2]: http://www.google.com 'Single quotes'</p>
         | 
| 171 | 
            -
             | 
| 162 | 
            +
            (not used anymore)
         | 
| 172 163 | 
             
            *** Output of Markdown.pl (parsed) ***
         | 
| 173 | 
            -
             | 
| 174 | 
            -
            Line: 
         | 
| 175 | 
            -
            Position: 
         | 
| 176 | 
            -
            Last 80 unconsumed characters:
         | 
| 177 | 
            -
            >
         | 
| 178 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
         | 
| 179 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
         | 
| 180 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:190:in `build'
         | 
| 181 | 
            -
            /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
         | 
| 182 | 
            -
            bin/marutest:199:in `new'
         | 
| 183 | 
            -
            bin/marutest:199:in `run_test'
         | 
| 184 | 
            -
            bin/marutest:262:in `marutest'
         | 
| 185 | 
            -
            bin/marutest:259:in `each'
         | 
| 186 | 
            -
            bin/marutest:259:in `marutest'
         | 
| 187 | 
            -
            bin/marutest:334
         | 
| 188 | 
            -
            ...
         | 
| 189 | 
            -
            Missing end tag for 'p' (got "div")
         | 
| 190 | 
            -
            Line: 
         | 
| 191 | 
            -
            Position: 
         | 
| 192 | 
            -
            Last 80 unconsumed characters:
         | 
| 193 | 
            -
             | 
| 194 | 
            -
            Line: 
         | 
| 195 | 
            -
            Position: 
         | 
| 196 | 
            -
            Last 80 unconsumed characters:
         | 
| 197 | 
            -
            >
         | 
| 164 | 
            +
            (not used anymore)
         |