Skip to content

Commit

Permalink
fix: markdown parsing after marked library version dump
Browse files Browse the repository at this point in the history
broken by 802d32f

gments.jsx
  • Loading branch information
Krystian Chmura authored and slsyy committed Mar 1, 2022
1 parent 42cede4 commit af7baec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-portal/src/services/get-fragments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { observable } from 'mobx'

// markdown parsing
import frontmatter from 'front-matter'
import marked from 'marked'
import { marked } from 'marked'

export const fragments = observable({})

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

window.fetch(path).then(response => response.text().then(text => {
const parsedMarkdown = frontmatter(text)
const html = marked(parsedMarkdown.body, {
const html = marked.parse(parsedMarkdown.body, {
headerPrefix: 'header-',
silent: true
})
Expand Down

0 comments on commit af7baec

Please sign in to comment.