Skip to content

Support language syntax highligthing in preview #140

sortega opened this Issue Jun 25, 2012 · 2 comments

3 participants

sortega commented Jun 25, 2012

Github flavored markdown allow code blocks with syntax hightlight by using the following construct:

require 'redcarpet'
markdown ="Hello World!")
puts markdown.to_html

It should be nice to have support for this in the preview.

@michael michael was assigned Jun 25, 2012
prose member
michael commented Jun 25, 2012

Good call. We'd really like to have this. Not only for the preview, but also for the editor, as CodeMirror supports most languages out of the box. Luckily marked the markdown parser we're using annotates appropriately so we can run the preview through a syntax highlighter, such as Rainbow.

<code class="lang-js">var surface = new Surface({
  el: '#content'

@maxogden you wanna help out here? :P

prose member
dhcole commented Mar 25, 2013

Understand the use case, but we're going to get back to the basics of doing markdown well for now. May revisit in the future. See #295

@dhcole dhcole closed this Mar 25, 2013
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.