SerKo
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
lib/renderer.mjs
|
|
@ -40,7 +40,7 @@ default_rules.fence = function (tokens, idx, options, env, slf) { |
|
|
|
|
|
|
|
|
let highlighted |
|
|
let highlighted |
|
|
if (options.highlight) { |
|
|
if (options.highlight) { |
|
|
highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content) |
|
|
highlighted = options.highlight(token.content, langName, langAttrs, env) || escapeHtml(token.content) |
|
|
} else { |
|
|
} else { |
|
|
highlighted = escapeHtml(token.content) |
|
|
highlighted = escapeHtml(token.content) |
|
|
} |
|
|
} |
|
|
|