import TurndownService from "turndown" ; export const filter = ( document ) => document . URL . startsWith ( 'https://segmentfault' ) ; export const processDocument = ( document ) => { document . querySelectorAll ( 'pre > code' ) . forEach ( code => code . className = `language-${ code . className }` ) ; } ; export const turndownPlugins = ( turndown ) => { } ;