Skip to content

Commit

Permalink
Fix the Marked import
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jul 4, 2020
1 parent 74e93eb commit f82ed46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wc-markdown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-undef: 0 */
import Prism from '../node_modules/prism-es6/prism.js'
import '../node_modules/marked/lib/marked.js'
import Marked from '../node_modules/marked/lib/marked.esm.js'

self.Prism = Prism

Expand Down Expand Up @@ -80,7 +80,7 @@ export class WCMarkdown extends HTMLElement {
}

static toHtml (markdown) {
return marked(markdown)
return Marked(markdown)
}

static highlight (element) {
Expand Down

0 comments on commit f82ed46

Please sign in to comment.