(whoops. accidentally sent off list)

looks at my previous posts in this thread. i explained it there. you
only need the kramdown_filter extension and the coderay gem (not the
coderay extension). usage looks like:

----def meth options
------p options
----end
{:lang="ruby"}

where - is replaced with space as you would in regular markdown `pre`
blocks. i don't think it gets easier than that.

On Mon, Jan 17, 2011 at 4:52 PM, craayzie  wrote:
> My coderay + kramdown markup is really heavy/cumbersome. Is there a
> better way?
>
> Here's an example:
>
> # heading
> <div markdown="block">
> ## sub-heading
> </div>
> <r:code language="terminal">
> code-goes-here
> </r:code>
>
> Ideally I could just write:
>
> # heading
> ## sub-heading
> $
> code-goes-here
> $
>
> (using '$' to endicate start/end coderay blocks)
>
> Any advice/guidance on how to best simplify the markup?

Reply via email to