diff --git a/src/js/ConfigMenu.js b/src/js/ConfigMenu.js index 7b15b42..fdfb3e2 100644 --- a/src/js/ConfigMenu.js +++ b/src/js/ConfigMenu.js @@ -57,17 +57,20 @@ export default class ConfigMenu { /** @type {Object.} */ #config; + /** @type {MarkdownIt} */ + #md; + constructor() { this.#config = {}; this.configButton = new Spicetify.Menu.Item("Dribbblish Settings", false, () => this.open()); this.configButton.register(); - this.md = MarkdownIt({ + this.#md = MarkdownIt({ html: true, breaks: true, linkify: true, typographer: true }); - this.md.use(MarkdownItAttrs); + this.#md.use(MarkdownItAttrs); const container = document.createElement("div"); container.id = "dribbblish-config"; @@ -119,7 +122,7 @@ export default class ConfigMenu { ${options.name} ${options.resetButton ? /* html */ `` : ""} - + ` : ""