File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments