import TurndownService from "turndown" ; export const filter = ( document ) => document . URL . startsWith ( 'https://mp.weixin' ) ; export const processDocument = ( document ) => { document . querySelectorAll ( 'pre > code' ) . forEach ( code => { code . innerHTML = code . innerHTML . replace ( /<br>/g , '\n' ) ; code . innerHTML = ( code as any ) . innerText || code . innerHTML ; } ) ; } ; export const turndownPlugins = ( turndown ) => { } ;