inlineTokens
import { inlineTokens } from 'pixi-silk/text';
function inlineTokens(text: string, known: (name: string) => boolean): InlineToken[];
The {name} tokens of a text whose names known accepts, in order. Other braces stay text.
Parameters#
| Parameter | Type |
|---|---|
text | string |
known | (name: string) => boolean |