[MacRuby] #1147: Kramdown does not work
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Kramdown ----------------------------------+----------------------------------------- When installing kramdown via macgems, everything seems to be working. But on more complex markdown stuff, MacRuby behaves a lot differently than standard ruby. For example this string: # header test A list * first bullet * second bullet Renders via puts Kramdown::Document.new(text).to_html only list and ignores header. -- Ticket URL: <http://www.macruby.org/trac/ticket/1147> MacRuby <http://macruby.org/>
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Kramdown ----------------------------------+----------------------------------------- Comment(by kunc.filip@…): I added attachment on which can be Kramdown tested. In TextView at the top enter: {{{ # header test A list * first bullet * second bullet }}} And click on Generate Preview. Notice header is ignored, but in standard Snow Leopard Ruby 1.8.7 it works as expected. -- Ticket URL: <http://www.macruby.org/trac/ticket/1147#comment:1> MacRuby <http://macruby.org/>
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Kramdown ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Thanks for investigating the problem. It would be nice to continue and try to reduce the problem to a simple pure-Ruby snippet. -- Ticket URL: <http://www.macruby.org/trac/ticket/1147#comment:2> MacRuby <http://macruby.org/>
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Kramdown ----------------------------------+----------------------------------------- Comment(by kunc.filip@…): Ok so you can try this: {{{ require 'rubygems' require 'kramdown' def works_in_standard_ruby_1_8_7 markdown_test_string = '# header test A list * first bullet * second bullet' doc = Kramdown::Document.new(markdown_test_string) puts doc.to_html # this line should output something like this: # <h1 id="header-test">header test</h1> # # <p>A list</p> # # <ul> # <li>first bullet</li> # <li>second bullet</li> # </ul> # but in MacRuby 0.8 it behaves badly, only last part is here: # <ul> # <li>first bullet</li> # <li>second bullet</li> # </ul> end works_in_standard_ruby_1_8_7 }}} Full source code for kramdown is at `git clone git://github.com/gettalong/kramdown.git` -- Ticket URL: <http://www.macruby.org/trac/ticket/1147#comment:3> MacRuby <http://macruby.org/>
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Kramdown ----------------------------------+----------------------------------------- Comment(by kunc.filip@…): Kramdown works as expected in new MacRuby 0.9! -- Ticket URL: <http://www.macruby.org/trac/ticket/1147#comment:4> MacRuby <http://macruby.org/>
#1147: Kramdown does not work ----------------------------------+----------------------------------------- Reporter: kunc.filip@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: Kramdown | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.9 Comment: Thanks for letting us know! Closing. -- Ticket URL: <http://www.macruby.org/trac/ticket/1147#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby