coderay syntax highlighting does not work in lists?

62 views
Skip to first unread message

Maschinengeist

unread,
Feb 7, 2012, 6:58:25 AM2/7/12
to na...@googlegroups.com
Hi everyone,

I'm using coderay for syntax highlighting within my markdown files. This is working when defining a code block by indention and using "#!php" e.g. as language hint. It gets properly converted. But whenever I'm using this inside an (ordered) list it gets converted into a pre/code block but the highlighting does not take place. 

Is this something that can be configured somehow or is this a limitation of something?

Denis Defreyne

unread,
Feb 7, 2012, 8:05:08 AM2/7/12
to na...@googlegroups.com
Hi,

Can you share the code of the ordered list in markdown so I can take a look at what goes wrong and how to fix it?

Cheers

Denis

> --
> You received this message because you are subscribed to the nanoc discusssion group.
>
> To post to this group, send email to na...@googlegroups.com
> To unsubscribe from this group, send email to
> nanoc+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nanoc?hl=en

justin

unread,
Feb 7, 2012, 9:57:41 AM2/7/12
to na...@googlegroups.com


You probably didn't indent your code block far enough. It's tricky
getting the indent level right with a code block inside a list item :)

It takes a full 8 spaces to make a code block inside a first-level
list item. If you want an easy way to play with it, check it out here:

http://daringfireball.net/projects/markdown/dingus

... Depending on which Markdown filter you're using, you can also use
fenced code blocks which is a bunch easier.

-- justin

Reply all
Reply to author
Forward
0 new messages