Skip to content

Commit 14b662d

Browse files
committed
fix: Disabled !!!-style syntax in settings. Legacy support will continue until version 7.0.0.
1 parent cc183a8 commit 14b662d

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/settings.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -376,21 +376,17 @@ export default class AdmonitionSetting extends PluginSettingTab {
376376
e.createSpan({
377377
text: t(", instead of using a code block.")
378378
});
379+
e.createEl("br");
380+
e.appendChild(WARNING_ICON.cloneNode(true));
381+
e.createEl("strong", {
382+
text: " Legacy support only. This setting will be removed in a future version. Use the MSDoc-syntax instead."
383+
});
379384
})
380385
)
381386
.addToggle((t) => {
382-
t.setValue(this.plugin.data.enableMarkdownProcessor).onChange(
383-
async (v) => {
384-
this.plugin.data.enableMarkdownProcessor = v;
385-
if (v) {
386-
this.plugin.enableMarkdownProcessor();
387-
} else {
388-
this.plugin.disableMarkdownProcessor();
389-
}
390-
this.display();
391-
await this.plugin.saveSettings();
392-
}
393-
);
387+
t.setValue(
388+
this.plugin.data.enableMarkdownProcessor
389+
).setDisabled(true);
394390
});
395391

396392
new Setting(containerEl)

0 commit comments

Comments
 (0)