Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update link in input and paste rules docstrings #5771

Merged
merged 3 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/PasteRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type PasteRuleFinder =

/**
* Paste rules are used to react to pasted content.
* @see https://tiptap.dev/guide/custom-extensions/#paste-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules
*/
export class PasteRule {
find: PasteRuleFinder
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/inputRules/markInputRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js'
/**
* Build an input rule that adds a mark when the
* matched text is typed into it.
* @see https://tiptap.dev/guide/custom-extensions/#input-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
*/
export function markInputRule(config: {
find: InputRuleFinder
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/inputRules/nodeInputRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js'
/**
* Build an input rule that adds a node when the
* matched text is typed into it.
* @see https://tiptap.dev/guide/custom-extensions/#input-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
*/
export function nodeInputRule(config: {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/inputRules/textInputRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { InputRule, InputRuleFinder } from '../InputRule.js'
/**
* Build an input rule that replaces text when the
* matched text is typed into it.
* @see https://tiptap.dev/guide/custom-extensions/#input-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
*/
export function textInputRule(config: {
find: InputRuleFinder,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/inputRules/textblockTypeInputRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js'
* matched text is typed into it. When using a regular expresion you’ll
* probably want the regexp to start with `^`, so that the pattern can
* only occur at the start of a textblock.
* @see https://tiptap.dev/guide/custom-extensions/#input-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
*/
export function textblockTypeInputRule(config: {
find: InputRuleFinder
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/inputRules/wrappingInputRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js'
* two nodes. You can pass a join predicate, which takes a regular
* expression match and the node before the wrapped node, and can
* return a boolean to indicate whether a join should happen.
* @see https://tiptap.dev/guide/custom-extensions/#input-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
*/
export function wrappingInputRule(config: {
find: InputRuleFinder,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/pasteRules/markPasteRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { callOrReturn } from '../utilities/callOrReturn.js'
/**
* Build an paste rule that adds a mark when the
* matched text is pasted into it.
* @see https://tiptap.dev/guide/custom-extensions/#paste-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules
*/
export function markPasteRule(config: {
find: PasteRuleFinder
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/pasteRules/nodePasteRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { callOrReturn } from '../utilities/index.js'
/**
* Build an paste rule that adds a node when the
* matched text is pasted into it.
* @see https://tiptap.dev/guide/custom-extensions/#paste-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules
*/
export function nodePasteRule(config: {
find: PasteRuleFinder
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/pasteRules/textPasteRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PasteRule, PasteRuleFinder } from '../PasteRule.js'
/**
* Build an paste rule that replaces text when the
* matched text is pasted into it.
* @see https://tiptap.dev/guide/custom-extensions/#paste-rules
* @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules
*/
export function textPasteRule(config: {
find: PasteRuleFinder,
Expand Down