Skip to content

Commit af7baec

Browse files
Krystian Chmuraslsyy
authored andcommitted
fix: markdown parsing after marked library version dump
broken by 802d32f gments.jsx
1 parent 42cede4 commit af7baec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-portal/src/services/get-fragments.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { observable } from 'mobx'
1212

1313
// markdown parsing
1414
import frontmatter from 'front-matter'
15-
import marked from 'marked'
15+
import { marked } from 'marked'
1616

1717
export const fragments = observable({})
1818

@@ -39,7 +39,7 @@ function loadHtml (path, fragment) {
3939

4040
window.fetch(path).then(response => response.text().then(text => {
4141
const parsedMarkdown = frontmatter(text)
42-
const html = marked(parsedMarkdown.body, {
42+
const html = marked.parse(parsedMarkdown.body, {
4343
headerPrefix: 'header-',
4444
silent: true
4545
})

0 commit comments

Comments
 (0)