mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
|
@ -25,7 +25,7 @@ class MarkdownRenderer {
|
|||
// Highlight.js expects hljs css classes on the code element.
|
||||
// This results in <pre><code class="hljs css languages-jsx">
|
||||
langPrefix: 'hljs css languages-',
|
||||
highlight: function(str, lang) {
|
||||
highlight(str, lang) {
|
||||
lang =
|
||||
lang || (siteConfig.highlight && siteConfig.highlight.defaultLang);
|
||||
if (lang) {
|
||||
|
@ -90,6 +90,4 @@ class MarkdownRenderer {
|
|||
|
||||
const renderMarkdown = new MarkdownRenderer();
|
||||
|
||||
module.exports = source => {
|
||||
return renderMarkdown.toHtml(source);
|
||||
};
|
||||
module.exports = source => renderMarkdown.toHtml(source);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue