import { ITagHandler , TagNode } from '@cc98/ubb-core' ; import { IContext } from '@cc98/context' ; import React from 'react' ; const handler = { isRecursive : true , render ( node , context , children ) { return ( < > { node . _isClose ? ( < span > { node . _rawText } { children } { `[/${ node . tagName }]` } < /span>) : (<>{node._rawText}</ > ) } < />); } , } ; export default handler ;