We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cede4 commit af7baecCopy full SHA for af7baec
dev-portal/src/services/get-fragments.jsx
@@ -12,7 +12,7 @@ import { observable } from 'mobx'
12
13
// markdown parsing
14
import frontmatter from 'front-matter'
15
-import marked from 'marked'
+import { marked } from 'marked'
16
17
export const fragments = observable({})
18
@@ -39,7 +39,7 @@ function loadHtml (path, fragment) {
39
40
window.fetch(path).then(response => response.text().then(text => {
41
const parsedMarkdown = frontmatter(text)
42
- const html = marked(parsedMarkdown.body, {
+ const html = marked.parse(parsedMarkdown.body, {
43
headerPrefix: 'header-',
44
silent: true
45
})
0 commit comments