overleaf/services/web/frontend/js/features/source-editor/utils
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
..
tree-operations Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
effects.ts Remove findEffect (#16343) 2024-01-04 09:03:20 +00:00
file.ts Allow files to be dragged from the file tree into the editor (#15028) 2024-05-09 08:04:46 +00:00
layer.ts Merge pull request #13120 from overleaf/dk-drawselection-cm-patch 2023-05-19 08:04:34 +00:00
position.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
prepare-lines.ts [cm6] indent figure modal generated code (#13213) 2023-06-01 08:03:49 +00:00
projection-state-field.ts Update the CodeMirror language when the current file is renamed (#16342) 2024-01-15 09:04:27 +00:00
range.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
sub-view.ts Merge pull request #13528 from overleaf/ii-review-panel-migration-current-file-view 2023-07-17 10:42:51 +00:00
tree-query.ts Add text formatting commands to the LaTeX grammar (#19607) 2024-08-02 08:06:11 +00:00
url.ts Validate URL protocol before opening from Visual Editor tooltip (#18393) 2024-05-21 08:04:26 +00:00