Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Add a preamble to a texast syntax tree.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add texast-util-add-preamble
# or with yarn
# yarn add texast-util-add-preamble
# or with npm
# npm install texast-util-add-preamble
addPreamble(tree: Root, commands: PreambleCommand[]): Root;
Name | Type |
---|---|
tree |
Root |
commands |
PreambleCommand [] |
Root
Defined in: lib/texast-util-add-preamble.ts:11
(
string
|PreambleCommand
)[]
Defined in: lib/texast-util-add-preamble.ts:8
(
string
|PreambleCommand
)[]
Defined in: lib/texast-util-add-preamble.ts:7
string
Defined in: lib/texast-util-add-preamble.ts:6
GPL-3.0-or-later © Thomas F. K. Jorna