import { Mode } from './modes-utils' ; import { Atom , ToLatexOptions } from './atom' ; import { LatexAtom } from '../core-atoms/latex' ; import { Style } from '../public/core' ; export class LatexMode extends Mode { constructor ( ) { super ( 'latex' ) ; } createAtom ( command , _style ) { return new LatexAtom ( command ) ; } serialize ( run , _options ) { return run . filter ( ( x ) => x instanceof LatexAtom && ! x . isSuggestion ) . map ( ( x ) => x . value ) . join ( '' ) ; } } new LatexMode ( ) ;