import { Widget } from '@phosphor/widgets' ; export class PreWidget extends Widget { constructor ( content ) { super ( ) ; const element = document . createElement ( 'div' ) ; const pre = document . createElement ( 'pre' ) ; pre . innerHTML = content ; element . appendChild ( pre ) ; this . node . appendChild ( element ) ; } }