From 28d52bda3df3bf9a1f8990207231d8fe65e4e433 Mon Sep 17 00:00:00 2001 From: Taso Date: Fri, 24 Sep 2021 13:39:01 -0400 Subject: [PATCH] fix(config/gfm): Actually use the GFM config value --- web/assets/markdown_parser.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/assets/markdown_parser.js b/web/assets/markdown_parser.js index 13a5201..fa4d70c 100644 --- a/web/assets/markdown_parser.js +++ b/web/assets/markdown_parser.js @@ -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) @@ -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}