@@ -120,18 +120,18 @@ export default function(md:MarkdownIt, options: { fencedComponents?:string[] } =
120120 return prismFence ( tokens , idx , options , env , slf )
121121 }
122122 } )
123- md . use ( container , 'tip' , alert ( { } ) )
124- md . use ( container , 'info' , alert ( { title :'INFO' , cls :'info' } ) )
125- md . use ( container , 'warning' , alert ( { title :'WARNING' , cls :'warning' } ) )
126- md . use ( container , 'danger' , alert ( { title :'DANGER' , cls :'danger' } ) )
127- md . use ( container , 'copy' , copy ( { cls :'not-prose copy cp' , icon :'bg-sky-500' } ) )
123+ md . use ( container as any , 'tip' , alert ( { } ) )
124+ md . use ( container as any , 'info' , alert ( { title :'INFO' , cls :'info' } ) )
125+ md . use ( container as any , 'warning' , alert ( { title :'WARNING' , cls :'warning' } ) )
126+ md . use ( container as any , 'danger' , alert ( { title :'DANGER' , cls :'danger' } ) )
127+ md . use ( container as any , 'copy' , copy ( { cls :'not-prose copy cp' , icon :'bg-sky-500' } ) )
128128 // Support legacy ::: sh and ::: shell containers by rendering <ShellCommand> wrapper
129- md . use ( container , 'sh' , shell ( ) )
130- md . use ( container , 'shell' , shell ( ) )
129+ md . use ( container as any , 'sh' , shell ( ) )
130+ md . use ( container as any , 'shell' , shell ( ) )
131131 // Additionally, fenced blocks ```shell or ```sh render <ShellCommand/> via fence rule above
132- md . use ( container , 'include' , include ( ) )
133- md . use ( container , 'youtube' , youtube ( ) )
134- md . use ( container , 'dynamic' , {
132+ md . use ( container as any , 'include' , include ( ) )
133+ md . use ( container as any , 'youtube' , youtube ( ) )
134+ md . use ( container as any , 'dynamic' , {
135135 validate : ( ) => true ,
136136 render : function ( tokens :any , idx :any ) {
137137 const token = tokens [ idx ] ;
0 commit comments