Skip to content

Commit

Permalink
fix(config/gfm): Actually use the GFM config value
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Sep 24, 2021
1 parent 2d76c47 commit 28d52bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/assets/markdown_parser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ENABLE_GFM_MARKDOWN, LOADSCREEN_TIPS} from "../config.js";
import {cleanUrl} from "./utils.js";
import { ENABLE_GFM_MARKDOWN, LOADSCREEN_TIPS } from "../config.js";
import { cleanUrl } from "./utils.js";

window.__openUrl = (url) => window.invokeNative ? window.invokeNative('openUrl', url) : window.open(url)

Expand All @@ -23,6 +23,10 @@ const renderer = {

marked.use({ renderer })

marked.setOptions({
gfm: ENABLE_GFM_MARKDOWN
})

export const parsedMdTips = LOADSCREEN_TIPS.map(({title, content}) => {
const renderedMarkup = marked(content)
return {title, content: renderedMarkup}
Expand Down

0 comments on commit 28d52bd

Please sign in to comment.