How to use the @remirror/core.markInputRule function in @remirror/core

To help you get started, we’ve selected a few @remirror/core 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 ifiokjr / remirror / @remirror / core-extensions / src / marks / bold.ts View on Github external
public inputRules({ type }: SchemaMarkTypeParams) {
    return [markInputRule(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type)];
  }
}
github ifiokjr / remirror / @remirror / core-extensions / src / marks / italic.ts View on Github external
public inputRules({ type }: SchemaMarkTypeParams) {
    return [markInputRule(/(?:^|[^*_])(?:\*|_)([^*_]+)(?:\*|_)$/, type)];
  }
github ifiokjr / remirror / @remirror / core-extensions / src / marks / strike.ts View on Github external
public inputRules({ type }: SchemaMarkTypeParams) {
    return [markInputRule(/~([^~]+)~$/, type)];
  }
github ifiokjr / remirror / @remirror / core-extensions / src / marks / code.ts View on Github external
public inputRules({ type }: SchemaMarkTypeParams) {
    return [markInputRule(/(?:`)([^`]+)(?:`)$/, type)];
  }
github ifiokjr / remirror / @remirror / core-extensions / src / marks / bold-extension.ts View on Github external
public inputRules({ type }: ExtensionManagerMarkTypeParams) {
    return [markInputRule({ regexp: /(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, type })];
  }
}
github ifiokjr / remirror / @remirror / core-extensions / src / marks / code-extension.ts View on Github external
public inputRules({ type }: ExtensionManagerMarkTypeParams) {
    return [markInputRule({ regexp: /(?:`)([^`]+)(?:`)$/, type })];
  }
github ifiokjr / remirror / @remirror / core-extensions / src / marks / italic-extension.ts View on Github external
public inputRules({ type }: ExtensionManagerMarkTypeParams) {
    return [markInputRule({ regexp: /(?:^|[^*_])(?:\*|_)([^*_]+)(?:\*|_)$/, type })];
  }
github ifiokjr / remirror / @remirror / core-extensions / src / marks / strike-extension.ts View on Github external
public inputRules({ type }: ExtensionManagerMarkTypeParams) {
    return [markInputRule({ regexp: /~([^~]+)~$/, type })];
  }