export type createCoreProcessorOptions = { markdownToHTML : ( markdown : string ) => string ; sanitizer : ( html : string ) => string ; } ; param options export const createCoreProcessor = ( { markdownToHTML , sanitizer } ) => { return ( markdown ) => { return sanitizer ( markdownToHTML ( markdown ) ) ; } ; } ;