overleaf/services/web/frontend
David 9cf94e57d3 Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197)
* Include \def commands in command definitions

* Allow command name to be in CtrlSym

* Pull nodeIntersectsChange check out of branches

* Fix \def handling

* Add handling for \newenvironment and \renewenvironment

* Allow \def to have optional arguments

* :x
Revert "Add handling for \newenvironment and \renewenvironment"

This reverts commit a70d3a0a13ed552daf3b761893e3f8609f0b0fc8.

* Add let commands to defintions

* Add environment names to math preview

* Ignore let command definitions in autocomplete

* Move nodeIntersectsChange check back into each block

* Add childOfNodeWithType utility and use to get command names

* commandNameText -> commandName

* Only include environment definitions

* Rename documentEnvironmentNames to documentEnvironments

* EnvironmentName -> Environment

* Format

GitOrigin-RevId: 9c5d701423ae786e5ff91960b4bcd94cd35d21c8
2024-09-17 08:04:53 +00:00
..
fonts Merge pull request #18870 from overleaf/mf-new-plans-page-table-individual 2024-06-18 08:05:16 +00:00
js Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
macros Merge pull request #19764 from overleaf/jpa-server-pro-cache 2024-08-07 08:04:24 +00:00
stories Merge pull request #20169 from overleaf/td-contact-modal-acknowledge 2024-09-05 08:05:28 +00:00
stylesheets Merge pull request #20327 from overleaf/td-bs5-project-notification-space 2024-09-10 08:05:09 +00:00
extracted-translations.json Merge pull request #20233 from overleaf/mj-restore-promo 2024-09-09 08:05:01 +00:00
translations-loader.js