How to use the tiptap-commands.markInputRule function in tiptap-commands

To help you get started, we’ve selected a few tiptap-commands examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pkkid / pushingkarma / src / utils / tiptap-examples / FontTextColor.js View on Github external
inputRules({ type }) {
		return [
			markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type),
		];
	}
}
github pkkid / pushingkarma / src / utils / tiptap-examples / FontSize.js View on Github external
inputRules({ type }) {
		return [
			markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type),
		];
	}
}
github scrumpy / tiptap / packages / tiptap-extensions / src / marks / Code.js View on Github external
inputRules({ type }) {
    return [
      markInputRule(/(?:`)([^`]+)(?:`)$/, type),
    ]
  }
github pkkid / pushingkarma / src / utils / tiptap-examples / FontFamily.js View on Github external
inputRules({ type }) {
		return [
			markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type),
		];
	}
}
github gitlabhq / gitlabhq / app / assets / javascripts / vue_shared / components / markdown / marks / math.js View on Github external
inputRules({ type }) {
    return [
      markInputRule(/(?:\$`)([^`]+)(?:`\$)$/, type),
    ]
  }
}
github scrumpy / tiptap / packages / tiptap-extensions / src / marks / Italic.js View on Github external
inputRules({ type }) {
		return [
			markInputRule(/(?:\*|_)([^\*_]+)(?:\*|_)$/, type),
		]
	}
github gitlabhq / gitlabhq / app / assets / javascripts / vue_shared / components / markdown / marks / code.js View on Github external
inputRules({ type }) {
    return [
      markInputRule(/(?:`)([^`]+)(?:`)$/, type),
    ]
  }
}
github scrumpy / tiptap / packages / tiptap-extensions / src / marks / Bold.js View on Github external
inputRules({ type }) {
    return [
      markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type),
    ]
  }
github pkkid / pushingkarma / src / utils / tiptap-examples / FontFillColor.js View on Github external
inputRules({ type }) {
		return [
			markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type),
		];
	}
}
github pkkid / pushingkarma / src / utils / tiptap.js View on Github external
inputRules({type}) {
    return [markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type)];
  }
}