From b1765a1e3c0dc0527576dcf6c4861e4b68a81f8b Mon Sep 17 00:00:00 2001 From: Send_Nukez Date: Sat, 13 Nov 2021 17:22:55 +0100 Subject: [PATCH] make the md prop private --- src/js/ConfigMenu.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 */ `` : ""} - + ` : ""