MCPcopy
hub / github.com/marktext/marktext / text

Function text

packages/muya/src/inlineRenderer/renderer/text.ts:5–12  ·  view source on GitHub ↗
(
    this: Renderer,
    { h, block, token }: ISyntaxRenderOptions,
)

Source from the content-addressed store, hash-verified

3
4// render token of text type to vnode.
5export 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}

Callers

nothing calls this directly

Calls 2

hFunction · 0.85
highlightMethod · 0.80

Tested by

no test coverage detected