import { Atom } from '../core/atom-class' ; import { Box } from '../core/box' ; import { Context } from '../core/context' ; export class ErrorAtom extends Atom { constructor ( value ) { super ( 'error' , { value , command : value , mode : 'math' } ) ; this . verbatimLatex = value ; } render ( context ) { const result = this . createBox ( context , { classes : 'ML__error' } ) ; if ( this . caret ) result . caret = this . caret ; return result ; } }