Skip to content

Commit

Permalink
fix($markdown): cannot highlight external python file (.py) correctly (
Browse files Browse the repository at this point in the history
…close: #660)
  • Loading branch information
ulivz committed Jul 27, 2018
1 parent 39f5c68 commit 2a33075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/markdown/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ module.exports = (str, lang) => {
if (lang === 'ts') {
lang = 'typescript'
}
if (lang === 'py') {
lang = 'python'
}
if (!prism.languages[lang]) {
try {
loadLanguages([lang])
Expand Down

0 comments on commit 2a33075

Please sign in to comment.