27 Commits

Author SHA1 Message Date
b8df1e0959 [lexical-code] Bug Fix: Allow Code Highlighter to be working in headless mode (#7538)
Co-authored-by: Baptiste Jamin <baptiste@crisp.chat>
2025-05-15 18:46:35 +00:00
2d55a82ea9 [Breaking Change] Chore: Improve spelling consistency across codebase (#7437) 2025-04-07 11:10:09 +00:00
322870efe7 [lexical][lexical-code] Refactor: Use NodeCaret to implement RangeSelection.getNodes() (#7135) 2025-02-24 01:14:33 +00:00
f3983c5123 [lexical-code][lexical-playground] Bug Fix: Fix selection boundaries in code block (#7187) 2025-02-16 22:44:01 +00:00
4cf0a5372f [lexical-code] Bug Fix: Annotate @lexical/code as having side-effects for Prism (#6652) 2024-09-20 03:03:15 +00:00
Mo
8a3eb1105c Fix issue where cmd/ctrl + left arrow after a tab character would cause exception (#6588) 2024-09-06 15:38:39 +00:00
5ec347674c [lexical] Feature: registerMutationListener should initialize its existing nodes (#6357) 2024-07-14 23:43:30 +00:00
081188c4bc [*] Chore: Fix all new lint warnings, plus manual exports clean-up (#5979) 2024-05-10 15:46:37 +01:00
4c30b5215f Use unnamed ESM imports for Prism modules (#5828) 2024-04-05 19:08:39 +01:00
edae3d36ef Node fork modules & moduleResolution bundler (#5774) 2024-04-02 00:33:51 +01:00
2afcbbe985 [PR 1] Swap instance selection for BaseSelection in most cases (#5280)
Co-authored-by: icrosil <illiaolenchenko@fb.com>
2023-12-01 14:20:57 -05:00
41f0b2bbe6 Fix missing token type (#4751) 2023-07-06 12:01:00 -04:00
b60f678567 Fix multi-line token parsing (#4741) 2023-07-04 20:30:09 -04:00
665ed38b64 Make tabs flexible in code (#4520) 2023-05-19 11:19:17 -04:00
fe940b94ef Tab support (#4436) 2023-05-06 11:06:00 +01:00
24678b6170 Added support for Java & C++ (#3884) 2023-02-16 10:27:31 +00:00
9fbc5641e9 Move default language setting to Tokenizer (#3368) 2022-12-08 19:24:50 +00:00
a49e682a35 Support TypeScript language in code nodes (#3469) 2022-12-01 13:43:10 +00:00
4ed1cba79c Fix selection bug in code highlighting transform (#3405) 2022-11-23 14:24:49 -05:00
8c74f89443 Use set (#3258) 2022-10-26 17:33:36 -06:00
4f80cd2211 Remove isHighlighting flag (#3256) 2022-10-25 19:01:12 +01:00
5f56651b8a Expose Tokenizer interface to accept custom tokenizer other than Prism at @lexical/code (#3243) 2022-10-24 10:49:48 -04:00
0542228f21 Fix code highlighter race condition on transform (#3014) 2022-09-15 08:23:20 -06:00
4f99705555 Allow code highlighting to run without active selection (#2891) 2022-08-25 12:28:08 -04:00
e6203ef14e fix more code imports (#2828) 2022-08-12 09:53:05 -07:00
b10f2fb979 fix: some typo (#2737) 2022-07-31 06:09:02 +01:00
9d737b6dd0 Separate @lexical/code into more atomic modules (#2673)
* separate code package into more atomic modules

* remove utils

* named exports
2022-07-21 19:47:12 +01:00