Code blocks with language specification

Hannes Tydén's Avatar

Hannes Tydén

08 Apr, 2013 09:25 AM

Marked should support code blocks with language specifications (ie ```Ruby or ```Python), currently this is formatted as normal text. I suggest that the language specification is simply ignored. Supporting code coloring for all different languages is probably a big undertaking, and people would complain if their code is not colored according to their preferences.

  1. 1 Posted by Hannes Tydén on 08 Apr, 2013 09:30 AM

    Hannes Tydén's Avatar

    Sorry, this works perfectly. Nevermind.

  2. 2 Posted by Hannes Tydén on 08 Apr, 2013 11:09 AM

    Hannes Tydén's Avatar

    The problem I was having was with code blocks in lists.

    Of course it would be nice if that was fixed too. :)

  3. Support Staff 3 Posted by Brett on 09 Apr, 2013 03:11 AM

    Brett's Avatar

    It is. Coming soon.

  4. Brett closed this discussion on 09 Apr, 2013 03:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac