flatten

Converts inline content to a plain string with its formatting dropped, as a maths run's text is handed to KaTeX.

@internote/canvas-sdkFunction
On this page
import { flatten } from '@internote/canvas-sdk';

A bound expression contributes nothing, since its value is a number that does not exist yet; renderedText counts it, for width.

#Signature

(items: unknown): string

#Parameters

items
The inline content, or a plain string.

Declared in packages/canvas-sdk/src/text/index.ts:269.

Last updated