Print a unified-latex AST with no fancy formatting
npm install @unified-latex/unified-latex-util-print-rawFunctions to print a unified-latex Abstract Syntax Tree (AST) to a string.
If you want to directly print an Ast.Ast to a string without any pretty printing or formatting.
``bash`
npm install @unified-latex/unified-latex-util-print-raw
This package contains both esm and commonjs exports. To explicitly access the esm export,
import the .js file. To explicitly access the commonjs export, import the .cjs file.
Renders the AST to a string without any pretty printing.
`typescript`
function printRaw(
node: Printable | Printable[],
options: { asArray: false }
): string;
Parameters
| Param | Type | Description |
| :------ | :------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| node | Printable \| Printable[] | |{ asArray: false; }
| options | | * Setting asArray to true will return an array of strings and the symbol linebreak, so that printing can be customized. |
| Name | Type |
| :---------- | :------- |
| linebreak | Symbol` |