mirror of
https://github.com/borbann-platform/end-of-semester-report.git
synced 2025-12-18 22:34:04 +01:00
18 lines
600 B
JavaScript
18 lines
600 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const unifiedLatexUtilMatch = require("@unified-latex/unified-latex-util-match");
|
|
const unifiedLatexUtilReplace = require("@unified-latex/unified-latex-util-replace");
|
|
function deleteComments(ast) {
|
|
return unifiedLatexUtilReplace.replaceNode(ast, (node) => {
|
|
if (!unifiedLatexUtilMatch.match.comment(node)) {
|
|
return;
|
|
}
|
|
if (node.leadingWhitespace) {
|
|
return { type: "whitespace" };
|
|
}
|
|
return null;
|
|
});
|
|
}
|
|
exports.deleteComments = deleteComments;
|
|
//# sourceMappingURL=index.cjs.map
|