evancz / elm-markdown

Markdown parsing within Elm
http://package.elm-lang.org/packages/evancz/elm-markdown/latest
Other
88 stars 7 forks source link

Provide customization for code block rendering #4

Closed jvoigtlaender closed 9 years ago

jvoigtlaender commented 9 years ago

Some thoughts are already in this message on the mailing list. Additionally, you could provide a means for the programmer to turn on auto-highlighting, where the highlight.js library's facility for detecting languages is used. That is, Markdown.Options could include an option to turn on such auto-detection, and then in these lines, when no explicit lang tag was given, but the programmer has turned on auto-detection, you could use something like hljs.highlightAuto(code).value instead of hljs.highlight(lang, code, true).value.

jvoigtlaender commented 9 years ago

I'm closing this, since #10 was merged.