123456789101112131415161718192021222324252627282930313233(** Extensions to the Cmarkit AST *)typeasset=|Localof{mime_type:stringoption;content:string}|RemoteofstringopenCmarkittypeBlock.t+=|DivofBlock.tattributednode|SlipScriptofBlock.Code_block.tattributednodemoduleFolder=structletblock_ext_defaultfacc=function|Div((b,_),_)->Folder.fold_blockfaccb|SlipScript_->acc|_->assertfalseletmake=Folder.make~block_ext_defaultendmoduleMapper=structlet(let*)=Option.bindletblock_ext_defaultm=function|Div((b,attrs),meta)->let*b=Mapper.map_blockmbinSome(Div((b,attrs),meta))|SlipScript_asb->Someb|_->assertfalseletmake=Mapper.make~block_ext_defaultend