mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
support 'text' language for no syntax highlighting (#875)
This commit is contained in:
parent
75538395be
commit
a6db22b6ff
|
|
@ -28,6 +28,9 @@ class MarkdownRenderer {
|
|||
highlight(str, lang) {
|
||||
lang =
|
||||
lang || (siteConfig.highlight && siteConfig.highlight.defaultLang);
|
||||
if (lang === 'text') {
|
||||
return str;
|
||||
}
|
||||
if (lang) {
|
||||
try {
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in New Issue