@unified-latex/unified-latex-util-comments
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

unified-latex-util-comments

What is this?

Functions to help modify comments in a unified-latex Abstract Syntax Tree (AST).

When should I use this?

If you want to process comments in a unified-latex AST.

Install

npm install @unified-latex/unified-latex-util-comments

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.

Functions

deleteComments(ast)

Returns a new AST with all comments removed. Care is taken to preserve whitespace. For example

x%
y

becomes xy but

x %
y

becomes x y

function deleteComments(ast: Ast.Ast): void;

Parameters

Param Type
ast Ast.Ast

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.8.03,153latest

Version History

VersionDownloads (Last 7 Days)Published
1.8.03,153
1.7.1701
1.7.01
1.6.15
1.6.04
1.4.216
1.4.037
1.3.21
1.3.10
1.3.00
1.2.21
1.2.10
1.2.00
1.1.00
1.0.1246
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.00

Package Sidebar

Install

npm i @unified-latex/unified-latex-util-comments

Weekly Downloads

3,965

Version

1.8.0

License

MIT

Unpacked Size

5.85 kB

Total Files

7

Last publish

Collaborators

  • siefkenj