# File lib/maruku/output/to_markdown.rb, line 93 def to_md_ol(context) len = (context[:line_length] || DefaultLineLength) - 2 md = "" self.children.each_with_index do |li, i| # s = (w=wrap(li.children, len-2, context)).rstrip.gsub(/^/, ' ')+"\n" # s[0,4] = "#{i+1}. "[0,4] # puts w.inspect s = "#{i+1}. " + wrap(li.children, len-2, context).rstrip + "\n" md += s end md + "\n" end