Skip to content

Commit

Permalink
Merge pull request #294 from kimkit/master
Browse files Browse the repository at this point in the history
修正 prism API 变更导致编译失败的问题 (PrismJS/prism#1400)
  • Loading branch information
ksky521 authored Oct 6, 2020
2 parents e8cfde1 + 6160d14 commit 41c4ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodeppt-parser/lib/markdown/prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function loadPrismLang(lang) {
let langObject = Prism.languages[lang];
if (langObject === undefined) {
try {
require('prismjs/components/prism-' + lang);
require('prismjs/components/index')([lang]);
return Prism.languages[lang];
} catch (e) {
// nothing to do
Expand Down

0 comments on commit 41c4ee1

Please sign in to comment.