Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Render all code elements that contain a newline with pygments - so no need for {% highlight %} #286

Closed
balupton opened this Issue · 2 comments

2 participants

@balupton

Right now markdown formatting needs the indent of the code to follow the markdown standard - if you wrap it with {% highlight ... %} then the indent is viewable in the code.

Would be nice if we didn't even have to specify the {% highlight ... %} block and just scan for all code blocks which have a newline and render them with pygments - my ruby skills are lacking so any help with this would be appreciated - would love to know here to start :)

@parkr
Owner

Hmmmm. Do you have an implementation & tests?

@parkr
Owner

This would be undesirable – what if you just wanted to wrap it with

instead of mess around with pygments? What if pygments didn't work on your machine, but Jekyll forced you to use it?

A neat idea, but it doesn't integrate well. Thanks for the suggestion!

@parkr parkr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.