siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
85 stars 20 forks source link

Break Up LaTeX Source on Section Macros #101

Closed renee-k closed 1 month ago

renee-k commented 2 months ago

The function breakOnBoundaries takes an AST and replaces section macros like \section{...} into environments like \begin{_section}\end{_section}, modifying the AST.