mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
reload config every time when markdown lib initiated
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user