overleaf/services/web/frontend/js/features/source-editor/utils/tree-operations
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
..
ancestors.ts Add text formatting commands to the LaTeX grammar (#19607) 2024-08-02 08:06:11 +00:00
colors.ts [visual] Apply style to the content of color commands (#13726) 2023-07-19 08:04:56 +00:00
commands.ts Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
comments.ts
common.ts Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
completions.ts Merge pull request #19418 from overleaf/mj-write-and-cite-custom-render 2024-07-24 08:05:04 +00:00
environments.ts Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
figure.ts
formatting.ts Add text formatting commands to the LaTeX grammar (#19607) 2024-08-02 08:06:11 +00:00
lists.ts [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00
math.ts Merge pull request #19617 from overleaf/dp-tooltip-alignment 2024-07-29 08:04:36 +00:00
outline.ts [ide-react] Improve file tree and outline components in the editor sidebar (#16225) 2023-12-18 09:03:53 +00:00
projection.ts Merge pull request #13744 from overleaf/mj-big-projects 2023-07-17 10:56:52 +00:00
text.ts
theorems.ts [visual] Add decorations for theorem environments (#13708) 2023-07-19 08:04:12 +00:00
tokens.ts