1.8.0 • Published 1 year ago
@unified-latex/unified-latex-util-print-raw v1.8.0
unified-latex-util-print-raw
What is this?
Functions to print a unified-latex Abstract Syntax Tree (AST) to a string.
When should I use this?
If you want to directly print an Ast.Ast to a string without any pretty printing or formatting.
Install
npm install @unified-latex/unified-latex-util-print-rawThis 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.
Functions
printRaw(node, options)
Renders the AST to a string without any pretty printing.
function printRaw(
node: Printable | Printable[],
options: { asArray: false }
): string;Parameters
| Param | Type | Description |
|---|---|---|
| node | Printable \| Printable[] | |
| options | { asArray: false; } | * Setting asArray to true will return an array of strings and the symbol linebreak, so that printing can be customized. |
Constants
| Name | Type |
|---|---|
linebreak | Symbol |
1.8.0
1 year ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.4.2
2 years ago
1.4.0
2 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.2.1
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.12
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.0
3 years ago