1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

reload config every time when markdown lib initiated

This commit is contained in:
Yu-Hung Ou
2018-03-16 23:30:57 +11:00
parent 433fce286e
commit 00ba38beba

View File

@@ -8,7 +8,6 @@ import {lastFindInArray} from './utils'
// FIXME We should not depend on global variable. // FIXME We should not depend on global variable.
const katex = window.katex const katex = window.katex
const config = ConfigManager.get()
function createGutter (str, firstLineNumber) { function createGutter (str, firstLineNumber) {
if (Number.isNaN(firstLineNumber)) firstLineNumber = 1 if (Number.isNaN(firstLineNumber)) firstLineNumber = 1
@@ -22,6 +21,7 @@ function createGutter (str, firstLineNumber) {
class Markdown { class Markdown {
constructor (options = {}) { constructor (options = {}) {
const config = ConfigManager.get()
const defaultOptions = { const defaultOptions = {
typographer: true, typographer: true,
linkify: true, linkify: true,