Skip to content

Commit

Permalink
fix: Disabled !!!-style syntax in settings. Legacy support will con…
Browse files Browse the repository at this point in the history
…tinue until version 7.0.0.
  • Loading branch information
valentine195 committed Feb 8, 2022
1 parent cc183a8 commit 14b662d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,21 +376,17 @@ export default class AdmonitionSetting extends PluginSettingTab {
e.createSpan({
text: t(", instead of using a code block.")
});
e.createEl("br");
e.appendChild(WARNING_ICON.cloneNode(true));
e.createEl("strong", {
text: " Legacy support only. This setting will be removed in a future version. Use the MSDoc-syntax instead."
});
})
)
.addToggle((t) => {
t.setValue(this.plugin.data.enableMarkdownProcessor).onChange(
async (v) => {
this.plugin.data.enableMarkdownProcessor = v;
if (v) {
this.plugin.enableMarkdownProcessor();
} else {
this.plugin.disableMarkdownProcessor();
}
this.display();
await this.plugin.saveSettings();
}
);
t.setValue(
this.plugin.data.enableMarkdownProcessor
).setDisabled(true);
});

new Setting(containerEl)
Expand Down

0 comments on commit 14b662d

Please sign in to comment.