[MacRuby] #1147: Kramdown does not work

MacRuby ruby-noreply at macosforge.org
Mon Feb 7 15:19:37 PST 2011


#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/>



More information about the macruby-tickets mailing list