ueberdosis/tiptap · error
[tiptap warn]: "inputRuleMatch.replaceWith" must be part of
Error message
[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".
What it means
Error "[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text"." thrown in ueberdosis/tiptap.
Source
Thrown at packages/core/src/InputRule.ts:84
if (isRegExp(find)) {
return find.exec(text)
}
const inputRuleMatch = find(text)
if (!inputRuleMatch) {
return null
}
const result: ExtendedRegExpMatchArray = [inputRuleMatch.text]
result.index = inputRuleMatch.index
result.input = text
result.data = inputRuleMatch.data
if (inputRuleMatch.replaceWith) {
if (!inputRuleMatch.text.includes(inputRuleMatch.replaceWith)) {
console.warn(
'[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".',
)
}
result.push(inputRuleMatch.replaceWith)
}
return result
}
function run(config: {
editor: Editor
from: number
to: number
text: string
rules: InputRule[]
plugin: Plugin
}): boolean {View on GitHub (pinned to 496d53afd7)
When it happens
Trigger: Thrown at packages/core/src/InputRule.ts:84 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ueberdosis/tiptap@496d53afd7 (2026-08-26).
Data as JSON: /api/errors/a3e1c6d9dd03692f.
Report an issue: GitHub.