Skip to content

Commit

Permalink
fix: add missing highlight.js dependency (#257)
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Urbańczyk <[email protected]>
  • Loading branch information
stavalfi and magicmatatjahu authored Sep 27, 2021
1 parent 797e9e8 commit b47ba97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion filters/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function loadLanguagesConfig() {
const languages = fs.readdirSync(hljsLanguagesPath);

for (let langPath of languages) {
const lang = require(path.resolve(hljsLanguagesPath, langPath));
const lang = require(path.resolve(hljsLanguagesPath, langPath.replace('.js', '')));
hljs.registerLanguage(lang.name, lang);
}

Expand Down
11 changes: 8 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"dependencies": {
"@asyncapi/react-component": "^1.0.0-next.17",
"highlight.js": "^11.2.0",
"puppeteer": "^5.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down

0 comments on commit b47ba97

Please sign in to comment.