Hilite_markdownSourceThe markdown hilite library depends on Cmarkit. It provides a convenience function transform that maps over markdown documents converting code blocks into HTML with highlighted syntax.
val transform :
?skip_unknown_languages:bool ->
?lookup_method:Hilite.tm_lookup_method ->
?tm:TmLanguage.t ->
Cmarkit.Doc.t ->
Cmarkit.Doc.ttransform ?tm md will extract code blocks from md and replace them with HTML code blocks with syntax highlighting spans.