Repository navigation
docs: ✏️ correct $node factory parameter description - #2518
Merged
Merged
Conversation
Updates $node's comment documentation to accurately describe the signature, which previously stated that the second parameter returns a function that returns a node schema. In reality, the second parameter returns a node schema directly.
|
@mahutt is attempting to deploy a commit to the Milkdown Team on Vercel. A member of the Team first needs to authorize it. |
|
Saul-Mirone
approved these changes
Nov 27, 2026
Saul-Mirone
enabled auto-merge
November 27, 2026 05:32
@milkdown/components
@milkdown/core
@milkdown/crepe
@milkdown/ctx
@milkdown/exception
@milkdown/kit
@milkdown/prose
@milkdown/transformer
@milkdown/utils
@milkdown/react
@milkdown/vue
@milkdown/plugin-automd
@milkdown/plugin-block
@milkdown/plugin-clipboard
@milkdown/plugin-collab
@milkdown/plugin-cursor
@milkdown/plugin-diff
@milkdown/plugin-emoji
@milkdown/plugin-highlight
@milkdown/plugin-history
@milkdown/plugin-indent
@milkdown/plugin-listener
@milkdown/plugin-prism
@milkdown/plugin-slash
@milkdown/plugin-streaming
@milkdown/plugin-tooltip
@milkdown/plugin-trailing
@milkdown/plugin-upload
@milkdown/preset-commonmark
@milkdown/preset-gfm
@milkdown/theme-nord
commit: |
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.
Summary
Updates
$node's comment documentation to accurately describe the signature, which previously stated that the second parameter returns a function that returns a node schema. In reality, the second parameter returns a node schema directly.The comment was reformatted (content unchanged) in 920cded, and has otherwise undergone no edits since it was authored in a657676. The error was unlikely to be noticed since, from what I can tell, a657676 wasn't merged in through a reviewed PR.
How did you test this change?
N/A: Documentation only change.