instiki/vendor/plugins/maruku/spec/block_docs/syntax_hl.md
Jacques Distler f463a3b1c8 Fix Maruku Indented Codeblocks
I'd screwed that up.
Also, fix some bugs in the #to_md
output method. Still not correct
(and I'm not sure I'm going to
bother completing the job), but
better.
2011-08-21 02:43:43 -05:00

1.5 KiB

Write a comment abouth the test here. *** Parameters: *** {} *** Markdown input: *** This is ruby code:

require 'maruku'

puts Maruku.new($stdin).to_html

This is ruby code:

require 'maruku'

{: lang=ruby html_use_syntax}

puts Maruku.new($stdin).to_html

*** Output of inspect *** md_el(:document,[ md_par(["This is ruby code:"]), md_el(:code,[],{:raw_code=>"require 'maruku'\n\nputs Maruku.new($stdin).to_html"},[]), md_par(["This is ruby code:"]), md_el(:code,[],{:raw_code=>"require 'maruku'"},"lang", "ruby"], [:ref, "html_use_syntax"), md_el(:code,[],{:raw_code=>"puts Maruku.new($stdin).to_html"},[]) ],{},[]) *** Output of to_html ***

This is ruby code:

require 'maruku'

puts Maruku.new($stdin).to_html

This is ruby code:

require 'maruku'
puts Maruku.new($stdin).to_html

*** Output of to_latex *** This is ruby code:

\begin{verbatim}require 'maruku'

puts Maruku.new($stdin).to_html\end{verbatim} This is ruby code:

\begin{verbatim}require 'maruku'\end{verbatim} \begin{verbatim}puts Maruku.new($stdin).to_html\end{verbatim} *** Output of to_md *** This is ruby code:

require 'maruku'

puts Maruku.new($stdin).to_html

This is ruby code:

require 'maruku'

{: lang=ruby html_use_syntax}

puts Maruku.new($stdin).to_html

*** Output of to_s *** This is ruby code:This is ruby code: