Skip to content

Commit

Permalink
docs: update link in input and paste rules docstrings (#5771)
Browse files Browse the repository at this point in the history
  • Loading branch information
HigherOrderLogic authored Oct 27, 2024
1 parent 4f4a72f commit 9386de5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
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

0 comments on commit 9386de5

Please sign in to comment.