mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
support 'text' language for no syntax highlighting (#875)
This commit is contained in:
parent
75538395be
commit
a6db22b6ff
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue