Sha256: 5702c35997d6c5bfc978b12f5fb6bcfd7c235b83d70e53e6b495a0f1446bae50
Contents?: true
Size: 1.61 KB
Versions: 4
Compression:
Stored size: 1.61 KB
Contents
#!/usr/bin/env ruby require './lib/reverse_markdown' # Example HTML Code for parsing example = <<-EOF This text, though not within an element, should also be shown. <h2>heading 1.1</h2> <p>text *italic* and **bold**.</p> <pre><code>text *italic* and **bold**. sdfsdff sdfsd sdf sdfsdf </code></pre> <blockquote> <p>text <em>italic</em> and <strong>bold</strong>. sdfsdff sdfsd sdf sdfsdf</p> </blockquote> <p>asdasd <code>sdfsdfsdf</code> asdad <a href="http://www.bla.de">link text</a></p> <p><a href="http://www.bla.de">link <strong>text</strong></a></p> <ol> <li>List item</li> <li>List <em>item</em> <ol><li>List item</li> <li>dsfdsf <ul><li>dfwe</li> <li>dsfsdfsdf</li></ul></li> <li>lidsf <img src="http://www.dfgdfg.de/dsf.jpe" alt="item" title="" /></li></ol></li> <li>sdfsdfsdf <ul><li>sdfsdfsdf</li> <li>sdfsdfsdf <strong>sdfsdf</strong></li></ul></li> </ol> <blockquote> <p>Lorem ipsum dolor sit amet, consetetur voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. <em>italic</em></p> </blockquote> <hr /> <blockquote> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed</p> </blockquote> This should also be shown, even if it's not wrapped in an element. <p>nur ein text! nur eine maschine!</p> This text should not be invisible! EOF r = ReverseMarkdown.new puts r.parse_string(example) #r.print_errors #r.speed_benchmark(example, 100)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reverse_markdown-0.2.1 | test/test.rb |
reverse_markdown-0.2.0 | test/test.rb |
reverse_markdown-0.1.0 | test/test.rb |
reverse_markdown-0.0.1 | test/test.rb |