latexContent
Wraps a LaTeX string as inline content, a label that is one maths run.
@internote/canvas-sdkOn this page
import { latexContent } from '@internote/canvas-sdk';For text an environment generates rather than an author writes, such as axis numbers in radians. Wrapping the string in the micronode the compiler would have emitted hands it everything a label has: the halo, the KaTeX rendering, the fallback to the source when the maths does not parse.
#Signature
(source: string): unknown#Parameters
sourceThe LaTeX source.
#Returns
Inline content holding one latex micronode, to pass where a label value is taken.
Declared in packages/canvas-sdk/src/text/index.ts:250.