Commit graph

301 commits

Author SHA1 Message Date
Tim Down
5cce9683fa Merge pull request #14628 from overleaf/td-review-panel-scroll-jump
Fix scroll jump and improvements to React review panel layout and performance

GitOrigin-RevId: 3123f90abeb1bf9712ba4025a272e13990aebbd9
2023-09-06 08:06:32 +00:00
Mathias Jakobsen
4f977a0ca7 Merge pull request #14618 from overleaf/ae-paragraph-newline
[visual] Add newlines after all paragraphs that aren't inside lists or tables

GitOrigin-RevId: 4e8b5b6ce07845fdf7614f7129aac2a88b3bb723
2023-09-06 08:05:25 +00:00
Mathias Jakobsen
ad38ac233b Merge pull request #14653 from overleaf/mj-column-spacing-parsing
[visual] Support cell spacing declarations

GitOrigin-RevId: 16b4ddc196558679301010378912b14f6295e05f
2023-09-06 08:05:20 +00:00
Mathias Jakobsen
d98288605a Merge pull request #14649 from overleaf/mj-table-gen-remove-columns-left
[visual] Fix removing multiple columns starting from the left in table generator

GitOrigin-RevId: d52adc3cb06e897f82c8ec1157e48e165683a14e
2023-09-06 08:05:15 +00:00
Mathias Jakobsen
5d33e5a658 Merge pull request #14630 from overleaf/mj-table-copy-paste
[visual] Fix copying and pasting with multicolumn

GitOrigin-RevId: 4710cedb40493ed018daf122e68aecfb91e1efc4
2023-09-05 08:05:13 +00:00
Mathias Jakobsen
2eff1bdf36 Merge pull request #14295 from overleaf/mj-table-gen-help-modal
[visual] Add help modal to table generator

GitOrigin-RevId: 48827734d2aa356f4547f1e6638381a1dd96b7e6
2023-09-05 08:04:52 +00:00
Mathias Jakobsen
c8413c6cc6 Merge pull request #14596 from overleaf/mj-manual-cell-widths
[visual] Manually calculate column widths in table generator

GitOrigin-RevId: ce42219098d56cca2fbdb1bef6ad33a11d79fb25
2023-09-05 08:04:47 +00:00
Mathias Jakobsen
2516f271b1 Merge pull request #14559 from overleaf/mj-table-add-row-borders
[visual] Table generator improvements

GitOrigin-RevId: 8d3d1b382c68c13480b3aa50b6764903ff59ae81
2023-09-05 08:04:43 +00:00
Mathias Jakobsen
8e6d6f8689 Merge pull request #14548 from overleaf/mj-early-exit-table-rendering
[visual] Show code when table generator fails rendering

GitOrigin-RevId: 6c1908b0c68cc965e445736f0c320f322d23c988
2023-09-05 08:04:39 +00:00
Alf Eaton
d92dc66e30 Protect special characters in pasted HTML (#14476)
GitOrigin-RevId: 7288f6696ed9af78c1ea4cc94d0e8022da90aacf
2023-09-04 08:04:54 +00:00
Alf Eaton
a0347c53f0 [visual] Decorate backslash-prefixed dollar sign (#14552)
GitOrigin-RevId: 3d846eeb1a25051b794a3673e9f48ac7fe4b2cbf
2023-09-04 08:04:50 +00:00
Alf Eaton
7004b5bacf [visual] Provide UI for toggling between plain text and formatted content after pasting (#14568)
GitOrigin-RevId: 3592d5507090a179d68e8e5f56f9e885639cac76
2023-09-04 08:04:45 +00:00
Alf Eaton
2b7119502c Merge pull request #14588 from overleaf/ae-paste-blockquote
[visual] Handle pasted blockquote

GitOrigin-RevId: 5acc257a464886c1f90daf9192c87cccf158927e
2023-09-04 08:04:40 +00:00
Alf Eaton
aef9821e00 Only end the preamble at MakeTitle if directly inside DocumentEnvironment (#14593)
GitOrigin-RevId: 3252a8260e02728c05b753433e3488b799b18de0
2023-09-04 08:04:36 +00:00
Mathias Jakobsen
28d8c2b135 Merge pull request #14499 from overleaf/mj-table-gen-tests
[visual] Add cypress tests for table generator

GitOrigin-RevId: 03bdd315221f8a5998fd37de4c955635dcc86148
2023-08-30 08:04:40 +00:00
Mathias Jakobsen
a3ee0dcd39 Merge pull request #14495 from overleaf/mj-table-gen-textarea
[visual] Use textarea instead of input in table generator

GitOrigin-RevId: 5d394f9978dc25bebf63f1cbd4f1c39466469843
2023-08-30 08:04:36 +00:00
Alf Eaton
03fbc5e0a8 [visual] Place cursor in editable content when closing the preamble (#14162)
GitOrigin-RevId: 35f146caa4469c7f31fb00dc6047a421b1daadb0
2023-08-30 08:04:27 +00:00
Alf Eaton
1e286c263c [visual] Avoid pasting formatted content into a math container (#14475)
GitOrigin-RevId: e563e27bf80092df7b296878536ca2d4549c4d2a
2023-08-30 08:04:23 +00:00
Alf Eaton
cf319b61b4 [visual] Improved pasted HTML handling (#14384)
* Replace non-breaking spaces added by Chrome on copy
* Ignore text/html from VS Code
* Improve table border handling
* Remove unused cy.spy
* Map em to textit and strong to textbf
* Left-align table cells by default
* Remove "justify" mapping
* Detect border on table row
* Remove protection for special characters in pasted HTML
* If the only pasted HTML content is in a code block, use the plain text version
* Enable paste-html feature in Storybook
* Improve table handling

GitOrigin-RevId: a912aa1fc659089451103e63c5d0fd3ae2a30627
2023-08-30 08:04:19 +00:00
Mathias Jakobsen
8b5278c076 Merge pull request #14428 from overleaf/mj-table-gen-cleanup
[visual] Table generator tweaks and improvements

GitOrigin-RevId: 621820c613924bc201ec85ea249edd6c9b6f88b2
2023-08-25 08:04:12 +00:00
Mathias Jakobsen
b987e59d60 Merge pull request #14340 from overleaf/mj-table-col-span
[visual] Support table multicolumn

GitOrigin-RevId: dd9cd2d5686d72dc9f53beb502a724a36f9c0bcf
2023-08-25 08:04:07 +00:00
Alf Eaton
96195177a3 Remove Grammarly warning (#14423)
GitOrigin-RevId: 623ecffabdce9fc15dfb62361822afb75bd1cfa8
2023-08-24 08:04:02 +00:00
Domagoj Kriskovic
f37ae7a5f8 [cm6] fix toggling ranges next to command (#14183)
GitOrigin-RevId: 4959419a09415b202dc7ce2271e9691d2c2387d4
2023-08-18 12:11:24 +00:00
Domagoj Kriskovic
b126d1f8f6 [cm6] select spell checked word with keyboard (#14257)
GitOrigin-RevId: 88b936a80fd63935c007276393a441a17a79c230
2023-08-18 12:11:19 +00:00
ilkin-overleaf
fc9d3755c2 Merge pull request #14361 from overleaf/ii-add-comment-review-panel
[web] Open current file view mode when adding comment through editor widget

GitOrigin-RevId: 7028ab2a2b6369064712d456c8ae1d33498b8002
2023-08-18 12:11:11 +00:00
Alf Eaton
28a7c13887 Fix path to Lezer LaTeX examples (#14364)
GitOrigin-RevId: bcabe1b73f09078367976456e4d1fddc02688b80
2023-08-18 08:05:18 +00:00
Alf Eaton
c90f4bee62 [visual] Only use the first document environment when calculating the preamble (#14343)
GitOrigin-RevId: fc7cb26f2e71bd1142f0269b7b95cacad3cf10a5
2023-08-18 08:05:13 +00:00
Alf Eaton
06aa92d0fd Only exclude the current command from autocompletion (#14367)
GitOrigin-RevId: 1f1dc0f2c3bcd19b12e06ec56d2d82181b0b5c6d
2023-08-18 08:05:09 +00:00
Alf Eaton
fbb0ab210e [cm6] Configure "4 spaces" as the indent unit for all files (#14366)
GitOrigin-RevId: 5aed6bc5abfd194c11830bdedcbba65ef1ed0522
2023-08-18 08:05:04 +00:00
Mathias Jakobsen
2d15ce8d05 Merge pull request #14317 from overleaf/mj-table-gen-update
[visual] in-place table generator updates

GitOrigin-RevId: 410411fd9158e6c8c6fe6a5300556800732a252a
2023-08-18 08:04:56 +00:00
Mathias Jakobsen
583222d5a5 Merge pull request #14305 from overleaf/mj-table-buttons
[visual] Add toolbar actions to delete table and manage captions

GitOrigin-RevId: 7a6aefd77fc4a66a1b78ae0727d4ece962fdd040
2023-08-18 08:04:47 +00:00
Mathias Jakobsen
8caa1f8e14 Merge pull request #14228 from overleaf/mj-table-icon
[cm6] Change table toolbar icon to table_chart

GitOrigin-RevId: b058919ad8a860a73d08784c86709119bbee4890
2023-08-18 08:04:42 +00:00
Alf Eaton
975ea16317 Avoid handling pasted HTML if there are files on the clipboard (#14321)
GitOrigin-RevId: 8bb258545f1763bf511817665c89e6f948dc0f62
2023-08-16 08:04:06 +00:00
Alf Eaton
a55bb9c4b2 [visual] Improve pasting of a table containing a caption (#14322)
GitOrigin-RevId: 6d7676a9412c5614f85c17e16509c80ad937cc40
2023-08-16 08:04:01 +00:00
Alf Eaton
a8d7306fc4 [cm6] Allow optional parameters in \def macro definition (#14329)
* Allow optional parameters in `\def` macro definition
* Allow whitespace in `\def` macro definition
* [lezer] Add test for optional macro parameter
* [lezer] Add test for whitespace before def csname

---------

Co-authored-by: Mathias Jakobsen <mathias.jakobsen@overleaf.com>
GitOrigin-RevId: 342b1198c90e11a1c6d3f63573d0540dfc5fd9a9
2023-08-16 08:03:57 +00:00
Alf Eaton
ffdb651998 Update unavailable Visual Editor tooltip (#14285)
GitOrigin-RevId: 3f19c2a3c55199c8b25aa5ebe0c4f1222aa84363
2023-08-16 08:03:53 +00:00
Alf Eaton
c8f0885316 Remove CM5 Rich Text module (#11776)
GitOrigin-RevId: 812d3b5f1df7e769c8be732ccb31653e8e9a8aa3
2023-08-16 08:03:35 +00:00
Mathias Jakobsen
421186df1c Merge pull request #14288 from overleaf/mj-table-gen-error-state-rework
[visual] Update look of table generator error state

GitOrigin-RevId: a16787131236ed2a59af48639c4ae5d196b39597
2023-08-15 08:03:08 +00:00
Mathias Jakobsen
5c5c5be594 Merge pull request #14249 from overleaf/mj-delete-row-column
[visual] Enable buttons for deleting and adding columns or rows

GitOrigin-RevId: 5cb68091d79b46eab507510e03180852b97666b9
2023-08-15 08:03:05 +00:00
Mathias Jakobsen
31c285871a Merge pull request #14248 from overleaf/mj-table-cell-alignment
[visual] Enable cell alignment in table generator

GitOrigin-RevId: 31be50712fd6b3b1da37b0906965f70618f6a9b3
2023-08-15 08:03:03 +00:00
Mathias Jakobsen
56438c32cc Merge pull request #14245 from overleaf/mj-linebreak-arguments
[lezer+visual] Allow optional arguments for line breaks

GitOrigin-RevId: e59a7c9a2efacc8a0fde887736899bbcbb52a4bc
2023-08-15 08:03:00 +00:00
Mathias Jakobsen
0b91a2052a Merge pull request #14233 from overleaf/mj-table-generator-skip-hlines
[visual] Table generator tweaks

GitOrigin-RevId: 80ec32d024d185861a3635d5cc6d77d6a7031b64
2023-08-15 08:02:57 +00:00
Mathias Jakobsen
63b09c3da3 Merge pull request #14227 from overleaf/mj-table-gen-booktabs
[visual] Support booktabs horizontal borders

GitOrigin-RevId: 9e59341b514c667fbba4154e6316274f9e42db3d
2023-08-15 08:02:54 +00:00
Mathias Jakobsen
6d8c8e678e Merge pull request #14226 from overleaf/mj-table-gen-reinstate-regex
[visual] Reinstate regex for escaping ampersands

GitOrigin-RevId: 61f561fdee0ff9393fb20eb0a0485ce7fbf75bea
2023-08-15 08:02:51 +00:00
Alf Eaton
253f2c53d5 [visual] Show tooltip with target for linkable nodes (#13636)
GitOrigin-RevId: c236caff7560d8d3e4f53667c7abe27b57f7711d
2023-08-14 08:05:09 +00:00
Alf Eaton
8f1de5fa09 [visual] Convert pasted HTML to LaTeX (#12094)
GitOrigin-RevId: a2fd4411ab8655eea834d321025efb9644081252
2023-08-14 08:05:05 +00:00
Alf Eaton
971e0f0e84 [visual] Add decorations for \textsuperscript and \textsubscript (#14153)
GitOrigin-RevId: 7a5bfc7077131dab7ba9569b7edc0d5daad65347
2023-08-14 08:04:50 +00:00
Alf Eaton
32d5c99cdc Merge pull request #14163 from overleaf/ae-maketitle-empty-lines
[visual] Preserve empty lines after maketitle

GitOrigin-RevId: c5f040567e220069f96d6962d8bd40334c9f68c8
2023-08-14 08:04:46 +00:00
John Lees-Miller
48ee8779f0 Merge pull request #14221 from overleaf/mj-regex-fix
[cm6] Remove negative lookbehind in regex

GitOrigin-RevId: 30c19680b1e20011945a7185a966100dc5e25d13
2023-08-09 08:04:36 +00:00
Mathias Jakobsen
2e944a6230 Merge pull request #14192 from overleaf/mj-table-keyboard-selection
[visual] move selection on keyboard buttons

GitOrigin-RevId: 617be9188880a98c1803033c406501ac02083bbc
2023-08-09 08:04:19 +00:00
Mathias Jakobsen
c332a65eb0 Merge pull request #14105 from overleaf/mj-table-generator
[visual] Initial table generator

GitOrigin-RevId: 5c1a9cad898c988d21390358872a6c2eaf1c32fc
2023-08-09 08:04:15 +00:00
Alf Eaton
f8f56cea89 [cm6] Add LineBreak to LaTeX grammar, highlight and decorate (#13742)
GitOrigin-RevId: 64c54676e0284b7187678eedcc5096b1aa284cc0
2023-08-04 08:05:26 +00:00
Alf Eaton
ea9a9fbe1c [cm6] Use less string casting, refactor tokenizers (#13898)
* Use more char definitions in tokenizers
* Refactor tokenizers

GitOrigin-RevId: 89f49da15f2bd64419fd2f19b0f255625e1d75cc
2023-08-04 08:05:21 +00:00
Alf Eaton
1f173010c7 Improve collaborator cursor positioning (#14145)
GitOrigin-RevId: c43f0877700381279c2f79699ea3963c3e9c12b3
2023-08-04 08:05:17 +00:00
Alf Eaton
c37b87e254 Move mark decorations after atomic decorations (#14146)
GitOrigin-RevId: aedaa57ba14e0e5ebf03053beaa1cd3cb1ee5b2b
2023-08-04 08:05:12 +00:00
Alf Eaton
cf285651ff Set text-wrap balance for title (#13962)
GitOrigin-RevId: 1d447bad517e3a389ed2668c0167aa52fae3be69
2023-08-04 08:05:07 +00:00
Domagoj Kriskovic
67632212d7 [cm6] show full title for section outline (#14100)
* [cm6] prefer showing full title in outline for sections

* fix test

* remove fallback

* test rename

GitOrigin-RevId: ac7a2a2c4fa7740a51661710953c85f03394292f
2023-08-04 08:04:15 +00:00
Domagoj Kriskovic
d3fabbc3e3 [cm6] autocomplete for memoir ref commands (#14120)
* [cm6] autocomplete for memoir ref commands

* added nameref

* remove from top hundred

GitOrigin-RevId: df34ee145b04831bf63d756fbdda05dcc4633b5d
2023-08-04 08:04:11 +00:00
Domagoj Kriskovic
e98d728bd8 [visual] calculate preamble position in the main tree iterator (#13964)
* [cm6] use preambleCheckLimit for finding preamble

* extend in case of title or author

* stop at SectioningCommand, include affiliation

* consistent comment

* using 30000 as node index

* use preambleNodes arr

* calc preamble without array

* remove preamble.to check

GitOrigin-RevId: 2019fd2b9673f181cba8966688f1ac9a6f984279
2023-08-04 08:04:06 +00:00
ilkin-overleaf
231278d1ca Merge pull request #14076 from overleaf/ii-indicator-ref-type-improvement
[web] Make the indicator ref type dynamic

GitOrigin-RevId: b66aa0f5ffc5c8071462e7e082ece21ef292b4fa
2023-08-01 08:04:27 +00:00
Tim Down
98a847ae75 Merge pull request #14059 from overleaf/td-review-panel-smoother-chrome
React review panel: fix regression that made animation jerky on Chrome

GitOrigin-RevId: c1d9fa00d478fa71d94ff705ddfcc12bab0b2767
2023-07-28 08:04:10 +00:00
Tim Down
ac919ed21a Merge pull request #14046 from overleaf/td-review-panel-scrolled-down-layout
React review panel: fix bug that prevented entries appearing when editor starts off scrolled down

GitOrigin-RevId: 61c5b5523e82cf5334c4de30d6849f45d5bc321a
2023-07-28 08:04:02 +00:00
Tim Down
6384163793 Merge pull request #14025 from overleaf/td-review-panel-hover-scroll
Review panel migration: end entry indicator hover on editor scroll

GitOrigin-RevId: fb895d9e4960b1c038c48fefd187f8af415db1da
2023-07-28 08:03:59 +00:00
Tim Down
f2b5ac23f8 Merge pull request #13997 from overleaf/td-review-panel-mini-hover
React review panel: make hovering an entry in the mini review panel display correctly

GitOrigin-RevId: 41a40e4047b89d2a8db15b2e12baf04c11b78e21
2023-07-25 08:03:55 +00:00
Tim Down
752ad8870d Merge pull request #13923 from overleaf/td-review-panel-non-sticky-toolbar-nav
Make toolbar and nav non-sticky in React review panel overview mode

GitOrigin-RevId: feb2950698512120a676a597f0edfa7ba615f934
2023-07-21 08:04:57 +00:00
Tim Down
a88589b7b7 Merge pull request #13951 from overleaf/td-review-panel-dismiss-bulk-actions
Review panel: make "Reject all" and "Accept all" buttons disappear after use

GitOrigin-RevId: 99534b65ec812fb0e6efd443ca126e71a0a09ae5
2023-07-21 08:04:53 +00:00
Tim Down
0d3af56efa Merge pull request #13911 from overleaf/td-review-panel-performance
Review panel: memoize entry views for performance

GitOrigin-RevId: 3c305845ad0914a7ffeb595e7235d7dceb4c780a
2023-07-21 08:04:49 +00:00
Domagoj Kriskovic
96e7c019bd [cm6] remove badge icon for toolbar in code editor (#13959)
GitOrigin-RevId: 33813eb1c22d651cf3ea599f30b626f93f8ef8ef
2023-07-20 08:04:50 +00:00
Alf Eaton
a9177abe5a [visual] Provide command definitions to MathJax (#13761)
GitOrigin-RevId: 845921df363f61d2333c1305b0b3edb86501c296
2023-07-19 08:05:00 +00:00
Alf Eaton
08c82a24a9 [visual] Apply style to the content of color commands (#13726)
GitOrigin-RevId: 4ae8b745618e91b487d17c357cdb0e697038b3a3
2023-07-19 08:04:56 +00:00
Alf Eaton
ca9593e74c [visual] Decorate quotation environments (#13728)
GitOrigin-RevId: 65c4bb8b4695d0698120936d3b2fb8ec6fa402dc
2023-07-19 08:04:52 +00:00
Domagoj Kriskovic
9c185d6f35 [cm6] fix toolbar overflow menu alignment (#13873)
GitOrigin-RevId: a70cf3fa37d49b9ed52fea4b928d52ffc2dbf136
2023-07-19 08:04:48 +00:00
Alf Eaton
05165682ba Update "Visual Editor not available" message (#13874)
GitOrigin-RevId: 5516bf74d1fa9046f4ca4b5d6c23d3a3b8e468f5
2023-07-19 08:04:44 +00:00
Alf Eaton
9f719c572d [cm6] Add offset to review panel entry positions when needed (#13912)
* Add offset to review panel entry positions when needed
* Fix useResizeObserver usage

GitOrigin-RevId: e220ce94e13c3a2347fc72654de747356eb1e658
2023-07-19 08:04:40 +00:00
Domagoj Kriskovic
4d3c4c6ae9 [cm6] add tracking to figure modal submit events (#13917)
GitOrigin-RevId: f0c755e2f336b5f0c6caf283bed69db65a0c3c92
2023-07-19 08:04:36 +00:00
Domagoj Kriskovic
79f07e5626 [cm6] dark mode for toolbar dropdowns (#13870)
GitOrigin-RevId: e220edddc678dd05c4c5d1927a5fcac379cd6ed5
2023-07-19 08:04:32 +00:00
Domagoj Kriskovic
c21b8e31fd [visual] suport for \texttt command in maketitle (#13824)
GitOrigin-RevId: 712eb8fb4fc0f2cbc5cd3c2e39ff6b8af39c0a49
2023-07-19 08:04:28 +00:00
Alf Eaton
ff7eec48de [cm6] Improve performance of the editor toolbar (#13915)
* Memoize figure and math dropdowns
* Only build section heading overlay when open
* Memoise currentLevel
* Remove memo from ToolbarOverflow
* Calculate listDepth in the container component
* Avoid using document.querySelector

GitOrigin-RevId: d5ec8817d35d04e0e2c60c8eecc8678ede69f82a
2023-07-19 08:04:24 +00:00
Alf Eaton
930cec2189 Calculate overflow when languageName or visual change (#13872)
GitOrigin-RevId: f2d200d0d34e810688defe78b8143829f095df9f
2023-07-19 08:04:20 +00:00
Alf Eaton
b284434ad2 [visual] Move the cursor after leading whitespace when creating a new list item on Enter (#13828)
GitOrigin-RevId: 2f5941627b64fb53efce0bdd6f2d888986f45a9d
2023-07-19 08:04:16 +00:00
Alf Eaton
05adb9d14d [visual] Add decorations for theorem environments (#13708)
GitOrigin-RevId: ba78be534fd7efba7d8722a214d69b21b0e3917c
2023-07-19 08:04:12 +00:00
Tim Down
38c673d057 Merge pull request #13720 from overleaf/td-review-panel-entry-pos
React review panel entry positioning

GitOrigin-RevId: c22617b1d3243b7d54b093426358aeb291421b9e
2023-07-19 08:03:52 +00:00
Eric Mc Sween
cce1a91205 Merge pull request #13897 from overleaf/ae-completion-event
Fix regular expression for completion event logging

GitOrigin-RevId: fbe3b91722fe40d4bb1116f23a78ebcebbd02b37
2023-07-17 11:13:27 +00:00
ilkin-overleaf
66f540c6eb Merge pull request #13845 from overleaf/ii-rp-incorrect-date
[web] Fix date issues in review panel

GitOrigin-RevId: 447185cc97aae5a2e6d8944be578fa103b39325b
2023-07-17 11:07:35 +00:00
ilkin-overleaf
680d5e0a6f Merge pull request #13839 from overleaf/ii-rp-word-break
[web] Break long text to new line in change entry

GitOrigin-RevId: e0effb86b08e7fe04b25040a8f3775c047203828
2023-07-17 11:07:26 +00:00
ilkin-overleaf
dbef201e3f Merge pull request #13801 from overleaf/ii-review-panel-migration-upgrade-track-changes-modal
[web] Create upgrade track changes modal

GitOrigin-RevId: 704ddef862ea9a2f8ca2bf63880da6e88f783724
2023-07-17 11:07:16 +00:00
ilkin-overleaf
84bbdf9772 Merge pull request #13767 from overleaf/ii-review-panel-migration-in-editor-widgets
[web] Create in editor widgets

GitOrigin-RevId: 53dfb9935ee59bbdedc353aad5e5b19f389a513c
2023-07-17 11:07:06 +00:00
Mathias Jakobsen
b008c19dc3 Merge pull request #13836 from overleaf/mj-bibtex-identifier
[lezer] Change bibtex identifier to deny-list

GitOrigin-RevId: 005b256a22acbafbeefd641cec82460f603fbc7a
2023-07-17 11:06:22 +00:00
Mathias Jakobsen
37582f7b72 Merge pull request #13805 from overleaf/mj-bibtex-content-outside
[lezer] Allow content outside declarations in bibtex

GitOrigin-RevId: 8051db5567eeb52c3b12f63afafe07a7a97df650
2023-07-17 11:05:37 +00:00
Alf Eaton
bbbf38d76b Add decorations for textmd and textsf (#13716)
GitOrigin-RevId: c5bedf2260c4e075e458ac38f90e5746dccdde81
2023-07-17 11:04:50 +00:00
Alf Eaton
809172d531 Decorate verbatim and lstlisting environments (#13722)
GitOrigin-RevId: 2e5af20bf2fe0c7769011ecd26797e93290b4fdb
2023-07-17 11:04:40 +00:00
Alf Eaton
b0b829f69b Add syntax highlighting for Ampersand nodes (#13737)
GitOrigin-RevId: 39c81ecb765adc4b33244b5f0f1eab81594dcba1
2023-07-17 11:04:30 +00:00
Alf Eaton
e7d36903bb [cm6] Add Tilde to the LaTeX grammar (#13740)
GitOrigin-RevId: 98a2e968056ba4d6e36310d4ea0f7ff2f25e373a
2023-07-17 11:04:21 +00:00
Alf Eaton
faff4a87b4 Never decorate inside math (#13810)
GitOrigin-RevId: c28d0aaa3ce267d989db779c13f6b3e91f376686
2023-07-17 11:04:11 +00:00
Alf Eaton
e86c5dc137 [cm6] Add analytics for bold and italic shortcuts (#13785)
GitOrigin-RevId: 62f2f9976778083b7ca6566f79e3d055585e7bb7
2023-07-17 11:04:01 +00:00
Alf Eaton
48e758a5fe Record each completion selection for analytics (#13665)
GitOrigin-RevId: bc8e92ceca51f6365c4311204a35fc85914969b0
2023-07-17 11:03:43 +00:00
Alf Eaton
5a786029a3 [cm6] Hide list indentation shortcuts in button tooltips in Code Editor (#13797)
GitOrigin-RevId: d5184310d81953d9765f6e1ae2343fdeb824ae01
2023-07-17 11:03:34 +00:00
Alf Eaton
34fa28c90b Hide most toolbar buttons for non-latex documents (#13725)
GitOrigin-RevId: 3bf487d86d1a465a1653b40891277380270ea7ff
2023-07-17 11:03:16 +00:00
Domagoj Kriskovic
8ab6239a24 [cm6] support \emph and \textbf in maketitle (#13703)
* [cm6] support \textbf in maketitle

* support for emph

* added support for \\textbf

* fix overlapping ignored ranges

* fix overlapping fn, added test

* multiple maketitle cases in the same test

* prettier

* simplify from calculation

* added test cases from #13736

GitOrigin-RevId: 00dcf15d6d62903ae30b387a16929e68dde8ca1b
2023-07-17 11:02:11 +00:00
Domagoj Kriskovic
9cb0122ea3 [visual] support for multiple authors in /maketitle (#13713)
* [visual] support for multiple titles in /maketitle

* support \and in author name

* using isMatchWith

* fix isMatchWith check

* fix isMatchWith... again

* add tests

* test author text replace and mouse events

* prettier

* don't handle updating node events

* use the arguments order as before

GitOrigin-RevId: 99b3d1c22a2dc1258a5cdf95738852028895f54a
2023-07-17 11:00:07 +00:00