@unified-latex/unified-latex-util-comments
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -1,11 +0,19 @@ | ||
export * from "./libs/delete-comments"; | ||
import * as Ast from '@unified-latex/unified-latex-types'; | ||
/** | ||
* ## 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. | ||
* 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` | ||
*/ | ||
//# sourceMappingURL=index.d.ts.map | ||
export declare function deleteComments(ast: Ast.Ast): void; | ||
export { } |
@@ -1,2 +0,1 @@ | ||
// libs/delete-comments.ts | ||
import { match } from "@unified-latex/unified-latex-util-match"; | ||
@@ -3,0 +2,0 @@ import { replaceNode } from "@unified-latex/unified-latex-util-replace"; |
{ | ||
"name": "@unified-latex/unified-latex-util-comments", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"description": "Tools for manipulating unified-latex ASTs", | ||
@@ -8,5 +8,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-types": "^1.6.1", | ||
"@unified-latex/unified-latex-util-match": "^1.6.1", | ||
"@unified-latex/unified-latex-util-replace": "^1.6.1" | ||
"@unified-latex/unified-latex-types": "^1.7.0", | ||
"@unified-latex/unified-latex-util-match": "^1.7.0", | ||
"@unified-latex/unified-latex-util-replace": "^1.7.0" | ||
}, | ||
@@ -13,0 +13,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5850
7
51
1