end-of-semester-report/node_modules/@unified-latex/unified-latex-ctan/utils/enumerate.d.ts
2025-05-14 16:14:35 +07:00

13 lines
728 B
TypeScript

import * as Ast from "@unified-latex/unified-latex-types";
/**
* Clean up any whitespace issues in an enumerate environment. In particular,
* * Remove any leading or ending whitespace
* * Ensure there is a par between occurrences of `\item`
* * Ensure there is whitespace after each occurrence of `\item` provided there is content there
* `itemName` can be used to set what the "item" macro is called.
*
* This function attaches content following a `\item` to the `\item` macro with
* `openMark` and `closeMark` set to empty. This allows hanging-indents to be rendered.
*/
export declare function cleanEnumerateBody(ast: Ast.Node[], itemName?: string): Ast.Node[];
//# sourceMappingURL=enumerate.d.ts.map