overleaf/services/web/frontend/js/features/source-editor/languages/latex
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
..
completions Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
linter Merge pull request #19882 from overleaf/mj-tcblisting 2024-08-14 08:04:59 +00:00
close-bracket-config.ts Avoid auto-closing $ directly before a TeX command (#15039) 2023-10-05 08:04:46 +00:00
codemirror-dev-tools.ts Reapply "Avoid vertical border between editor switch and empty space (#18029)" (#18072) 2024-04-24 08:04:22 +00:00
complete.ts Merge pull request #19308 from overleaf/mj-mendeley-search 2024-08-15 08:05:11 +00:00
document-commands.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
document-environments.ts Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
document-outline.ts Add text formatting commands to the LaTeX grammar (#19607) 2024-08-02 08:06:11 +00:00
index.ts Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
latex-indent-service.ts Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
latex-language.ts Add text formatting commands to the LaTeX grammar (#19607) 2024-08-02 08:06:11 +00:00
linting.ts Merge pull request #19253 from overleaf/mj-bibtex-linter 2024-07-15 09:01:21 +00:00
metadata.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
open-autocomplete.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
shortcuts.ts Remove completion and shortcut event logging (#15633) 2023-11-07 12:34:56 +00:00
snippets.ts [cm6] Handle multiple selection ranges when applying snippets (#12830) 2023-05-04 08:04:39 +00:00