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.
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 explicitlang
tag was given, but the programmer has turned on auto-detection, you could use something likehljs.highlightAuto(code).value
instead ofhljs.highlight(lang, code, true).value
.