(
this: Renderer,
{ h, block, token }: ISyntaxRenderOptions,
)
| 3 | |
| 4 | // render token of text type to vnode. |
| 5 | export default function text( |
| 6 | this: Renderer, |
| 7 | { h, block, token }: ISyntaxRenderOptions, |
| 8 | ) { |
| 9 | const { start, end } = token.range; |
| 10 | |
| 11 | return [h('span.mu-plain-text', this.highlight(h, block, start, end, token))]; |
| 12 | } |