mdiep / MMMarkdown

An Objective-C framework for converting Markdown to HTML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for syntax highlighting

adamawolf opened this issue · comments

Hello, I'd love to be able to use github-style syntax highlighting on fenced code blocks in MMMarkdown.

E.g.

let countInDozen: Int = 12
let sidesInTriangle: Int = 3
let lettersInEnglishAlphabet: Int = 26

vs.

let countInDozen: Int = 12
let sidesInTriangle: Int = 3
let lettersInEnglishAlphabet: Int = 26

Do you have any plans to add this feature? If not, how would you like to see it implemented were I to take this on?

This is outside the scope of MMMarkdown. You can do this with another library after the Markdown step. Try using something like https://github.com/isagalaev/highlight.js.