Repository navigation
[lexical-website] Documentation Update: fix two extension names that do not exist - #9210
Merged
Merged
Conversation
…do not exist
## Description
Two extension names in the extensions docs do not exist:
1. `extensions/design.md` cites a `RectProviderExtension` provided by
`LexicalExtensionComposer` or `ReactPluginHost`. The symbol is
`ReactProviderExtension` — `RectProviderExtension` (a transposition of
"React") appears nowhere else in the repo. The hosting extension is also
named `ReactPluginHostExtension`.
2. `extensions/peer-dependencies.md` gives, as its example of an optional
peer, "only if the `MarkdownExtension` is present in that editor".
`@lexical/markdown` exports no extension at all; the Markdown extensions
live in `@lexical/mdast`.
## Test plan
Documentation-only change (markdown is excluded from prettier via
`.prettierignore`), so the check is that the named symbols exist.
### Before
```
$ grep -rn "RectProviderExtension" packages/ | grep -v lexical-website
$ grep -n "RectProviderExtension" packages/lexical-website/docs/extensions/design.md
91: would be the requirement of a `RectProviderExtension` provided by either
$ grep -n "MarkdownExtension" packages/lexical-website/docs/extensions/peer-dependencies.md
19:if the `MarkdownExtension` is present in that editor.
$ grep -c "Extension" packages/lexical-markdown/src/index.ts
0
```
Neither name resolves to anything.
### After
```
$ sed -n '90,92p' packages/lexical-website/docs/extensions/design.md
would be the requirement of a `ReactProviderExtension` provided by either
`LexicalExtensionComposer` or `ReactPluginHostExtension`. An extension can implement this
at runtime in `init` or `register`.
$ sed -n '17,19p' packages/lexical-website/docs/extensions/peer-dependencies.md
Another example would be to provide Markdown serialization or import
for an extension that provides some custom node type, but only
if the `MdastExtension` is present in that editor.
$ grep -rn "export const ReactProviderExtension" packages/lexical-react/src/ReactProviderExtension.tsx
18:export const ReactProviderExtension = defineExtension({
$ grep -n "export const MdastExtension" packages/lexical-mdast/src/MdastExtension.ts
27:export const MdastExtension = defineExtension({
```
`ReactProviderExtension` is the peer `ReactExtension` itself declares
(`packages/lexical-react/src/ReactExtension.tsx:104-111`) and is supplied by
`LexicalExtensionComposer` (`LexicalExtensionComposer.tsx:94`) and
`ReactPluginHostExtension` (`ReactPluginHostExtension.tsx:213`).
potatowagon
requested review from
acywatson,
etrepum,
fantactuka,
ivailop7 and
zurfyx
as code owners
September 23, 2026 17:46
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
approved these changes
Sep 23, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two extension names in the extensions docs do not exist:
extensions/design.mdcites aRectProviderExtensionprovided byLexicalExtensionComposerorReactPluginHost. The symbol isReactProviderExtension—RectProviderExtension(a transposition of"React") appears nowhere else in the repo. The hosting extension is also
named
ReactPluginHostExtension.extensions/peer-dependencies.mdgives, as its example of an optionalpeer, "only if the
MarkdownExtensionis present in that editor".@lexical/markdownexports no extension at all; the Markdown extensionslive in
@lexical/mdast.Test plan
Documentation-only change (markdown is excluded from prettier via
.prettierignore), so the check is that the named symbols exist.Before
Neither name resolves to anything.
After
ReactProviderExtensionis the peerReactExtensionitself declares(
packages/lexical-react/src/ReactExtension.tsx:104-111) and is supplied byLexicalExtensionComposer(LexicalExtensionComposer.tsx:94) andReactPluginHostExtension(ReactPluginHostExtension.tsx:213).