fix: resolve TypeScript errors in frontend build
This commit is contained in:
21
node_modules/@tiptap/extension-italic/LICENSE.md
generated
vendored
Normal file
21
node_modules/@tiptap/extension-italic/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025, Tiptap GmbH
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
18
node_modules/@tiptap/extension-italic/README.md
generated
vendored
Normal file
18
node_modules/@tiptap/extension-italic/README.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# @tiptap/extension-italic
|
||||
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-italic)
|
||||
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-italic)
|
||||
[](https://github.com/sponsors/ueberdosis)
|
||||
|
||||
## Introduction
|
||||
|
||||
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
|
||||
|
||||
## Official Documentation
|
||||
|
||||
Documentation can be found on the [Tiptap website](https://tiptap.dev).
|
||||
|
||||
## License
|
||||
|
||||
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
||||
134
node_modules/@tiptap/extension-italic/dist/index.cjs
generated
vendored
Normal file
134
node_modules/@tiptap/extension-italic/dist/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
Italic: () => Italic,
|
||||
default: () => index_default,
|
||||
starInputRegex: () => starInputRegex,
|
||||
starPasteRegex: () => starPasteRegex,
|
||||
underscoreInputRegex: () => underscoreInputRegex,
|
||||
underscorePasteRegex: () => underscorePasteRegex
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/italic.ts
|
||||
var import_core = require("@tiptap/core");
|
||||
var starInputRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/;
|
||||
var starPasteRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g;
|
||||
var underscoreInputRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/;
|
||||
var underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
|
||||
var Italic = import_core.Mark.create({
|
||||
name: "italic",
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {}
|
||||
};
|
||||
},
|
||||
parseHTML() {
|
||||
return [
|
||||
{
|
||||
tag: "em"
|
||||
},
|
||||
{
|
||||
tag: "i",
|
||||
getAttrs: (node) => node.style.fontStyle !== "normal" && null
|
||||
},
|
||||
{
|
||||
style: "font-style=normal",
|
||||
clearMark: (mark) => mark.type.name === this.name
|
||||
},
|
||||
{
|
||||
style: "font-style=italic"
|
||||
}
|
||||
];
|
||||
},
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ["em", (0, import_core.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes), 0];
|
||||
},
|
||||
addCommands() {
|
||||
return {
|
||||
setItalic: () => ({ commands }) => {
|
||||
return commands.setMark(this.name);
|
||||
},
|
||||
toggleItalic: () => ({ commands }) => {
|
||||
return commands.toggleMark(this.name);
|
||||
},
|
||||
unsetItalic: () => ({ commands }) => {
|
||||
return commands.unsetMark(this.name);
|
||||
}
|
||||
};
|
||||
},
|
||||
markdownTokenName: "em",
|
||||
parseMarkdown: (token, helpers) => {
|
||||
return helpers.applyMark("italic", helpers.parseInline(token.tokens || []));
|
||||
},
|
||||
markdownOptions: {
|
||||
htmlReopen: {
|
||||
open: "<em>",
|
||||
close: "</em>"
|
||||
}
|
||||
},
|
||||
renderMarkdown: (node, h) => {
|
||||
return `*${h.renderChildren(node)}*`;
|
||||
},
|
||||
addKeyboardShortcuts() {
|
||||
return {
|
||||
"Mod-i": () => this.editor.commands.toggleItalic(),
|
||||
"Mod-I": () => this.editor.commands.toggleItalic()
|
||||
};
|
||||
},
|
||||
addInputRules() {
|
||||
return [
|
||||
(0, import_core.markInputRule)({
|
||||
find: starInputRegex,
|
||||
type: this.type
|
||||
}),
|
||||
(0, import_core.markInputRule)({
|
||||
find: underscoreInputRegex,
|
||||
type: this.type
|
||||
})
|
||||
];
|
||||
},
|
||||
addPasteRules() {
|
||||
return [
|
||||
(0, import_core.markPasteRule)({
|
||||
find: starPasteRegex,
|
||||
type: this.type
|
||||
}),
|
||||
(0, import_core.markPasteRule)({
|
||||
find: underscorePasteRegex,
|
||||
type: this.type
|
||||
})
|
||||
];
|
||||
}
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = Italic;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
Italic,
|
||||
starInputRegex,
|
||||
starPasteRegex,
|
||||
underscoreInputRegex,
|
||||
underscorePasteRegex
|
||||
});
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
1
node_modules/@tiptap/extension-italic/dist/index.cjs.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-italic/dist/index.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
54
node_modules/@tiptap/extension-italic/dist/index.d.cts
generated
vendored
Normal file
54
node_modules/@tiptap/extension-italic/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import { Mark } from '@tiptap/core';
|
||||
|
||||
interface ItalicOptions {
|
||||
/**
|
||||
* HTML attributes to add to the italic element.
|
||||
* @default {}
|
||||
* @example { class: 'foo' }
|
||||
*/
|
||||
HTMLAttributes: Record<string, any>;
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
italic: {
|
||||
/**
|
||||
* Set an italic mark
|
||||
* @example editor.commands.setItalic()
|
||||
*/
|
||||
setItalic: () => ReturnType;
|
||||
/**
|
||||
* Toggle an italic mark
|
||||
* @example editor.commands.toggleItalic()
|
||||
*/
|
||||
toggleItalic: () => ReturnType;
|
||||
/**
|
||||
* Unset an italic mark
|
||||
* @example editor.commands.unsetItalic()
|
||||
*/
|
||||
unsetItalic: () => ReturnType;
|
||||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Matches an italic to a *italic* on input.
|
||||
*/
|
||||
declare const starInputRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a *italic* on paste.
|
||||
*/
|
||||
declare const starPasteRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a _italic_ on input.
|
||||
*/
|
||||
declare const underscoreInputRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a _italic_ on paste.
|
||||
*/
|
||||
declare const underscorePasteRegex: RegExp;
|
||||
/**
|
||||
* This extension allows you to create italic text.
|
||||
* @see https://www.tiptap.dev/api/marks/italic
|
||||
*/
|
||||
declare const Italic: Mark<ItalicOptions, any>;
|
||||
|
||||
export { Italic, type ItalicOptions, Italic as default, starInputRegex, starPasteRegex, underscoreInputRegex, underscorePasteRegex };
|
||||
54
node_modules/@tiptap/extension-italic/dist/index.d.ts
generated
vendored
Normal file
54
node_modules/@tiptap/extension-italic/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import { Mark } from '@tiptap/core';
|
||||
|
||||
interface ItalicOptions {
|
||||
/**
|
||||
* HTML attributes to add to the italic element.
|
||||
* @default {}
|
||||
* @example { class: 'foo' }
|
||||
*/
|
||||
HTMLAttributes: Record<string, any>;
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
italic: {
|
||||
/**
|
||||
* Set an italic mark
|
||||
* @example editor.commands.setItalic()
|
||||
*/
|
||||
setItalic: () => ReturnType;
|
||||
/**
|
||||
* Toggle an italic mark
|
||||
* @example editor.commands.toggleItalic()
|
||||
*/
|
||||
toggleItalic: () => ReturnType;
|
||||
/**
|
||||
* Unset an italic mark
|
||||
* @example editor.commands.unsetItalic()
|
||||
*/
|
||||
unsetItalic: () => ReturnType;
|
||||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Matches an italic to a *italic* on input.
|
||||
*/
|
||||
declare const starInputRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a *italic* on paste.
|
||||
*/
|
||||
declare const starPasteRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a _italic_ on input.
|
||||
*/
|
||||
declare const underscoreInputRegex: RegExp;
|
||||
/**
|
||||
* Matches an italic to a _italic_ on paste.
|
||||
*/
|
||||
declare const underscorePasteRegex: RegExp;
|
||||
/**
|
||||
* This extension allows you to create italic text.
|
||||
* @see https://www.tiptap.dev/api/marks/italic
|
||||
*/
|
||||
declare const Italic: Mark<ItalicOptions, any>;
|
||||
|
||||
export { Italic, type ItalicOptions, Italic as default, starInputRegex, starPasteRegex, underscoreInputRegex, underscorePasteRegex };
|
||||
103
node_modules/@tiptap/extension-italic/dist/index.js
generated
vendored
Normal file
103
node_modules/@tiptap/extension-italic/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
// src/italic.ts
|
||||
import { Mark, markInputRule, markPasteRule, mergeAttributes } from "@tiptap/core";
|
||||
var starInputRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/;
|
||||
var starPasteRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g;
|
||||
var underscoreInputRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/;
|
||||
var underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g;
|
||||
var Italic = Mark.create({
|
||||
name: "italic",
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {}
|
||||
};
|
||||
},
|
||||
parseHTML() {
|
||||
return [
|
||||
{
|
||||
tag: "em"
|
||||
},
|
||||
{
|
||||
tag: "i",
|
||||
getAttrs: (node) => node.style.fontStyle !== "normal" && null
|
||||
},
|
||||
{
|
||||
style: "font-style=normal",
|
||||
clearMark: (mark) => mark.type.name === this.name
|
||||
},
|
||||
{
|
||||
style: "font-style=italic"
|
||||
}
|
||||
];
|
||||
},
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ["em", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
||||
},
|
||||
addCommands() {
|
||||
return {
|
||||
setItalic: () => ({ commands }) => {
|
||||
return commands.setMark(this.name);
|
||||
},
|
||||
toggleItalic: () => ({ commands }) => {
|
||||
return commands.toggleMark(this.name);
|
||||
},
|
||||
unsetItalic: () => ({ commands }) => {
|
||||
return commands.unsetMark(this.name);
|
||||
}
|
||||
};
|
||||
},
|
||||
markdownTokenName: "em",
|
||||
parseMarkdown: (token, helpers) => {
|
||||
return helpers.applyMark("italic", helpers.parseInline(token.tokens || []));
|
||||
},
|
||||
markdownOptions: {
|
||||
htmlReopen: {
|
||||
open: "<em>",
|
||||
close: "</em>"
|
||||
}
|
||||
},
|
||||
renderMarkdown: (node, h) => {
|
||||
return `*${h.renderChildren(node)}*`;
|
||||
},
|
||||
addKeyboardShortcuts() {
|
||||
return {
|
||||
"Mod-i": () => this.editor.commands.toggleItalic(),
|
||||
"Mod-I": () => this.editor.commands.toggleItalic()
|
||||
};
|
||||
},
|
||||
addInputRules() {
|
||||
return [
|
||||
markInputRule({
|
||||
find: starInputRegex,
|
||||
type: this.type
|
||||
}),
|
||||
markInputRule({
|
||||
find: underscoreInputRegex,
|
||||
type: this.type
|
||||
})
|
||||
];
|
||||
},
|
||||
addPasteRules() {
|
||||
return [
|
||||
markPasteRule({
|
||||
find: starPasteRegex,
|
||||
type: this.type
|
||||
}),
|
||||
markPasteRule({
|
||||
find: underscorePasteRegex,
|
||||
type: this.type
|
||||
})
|
||||
];
|
||||
}
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = Italic;
|
||||
export {
|
||||
Italic,
|
||||
index_default as default,
|
||||
starInputRegex,
|
||||
starPasteRegex,
|
||||
underscoreInputRegex,
|
||||
underscorePasteRegex
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@tiptap/extension-italic/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-italic/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
48
node_modules/@tiptap/extension-italic/package.json
generated
vendored
Normal file
48
node_modules/@tiptap/extension-italic/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "@tiptap/extension-italic",
|
||||
"description": "italic extension for tiptap",
|
||||
"version": "3.21.0",
|
||||
"homepage": "https://tiptap.dev",
|
||||
"keywords": [
|
||||
"tiptap",
|
||||
"tiptap extension"
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"import": "./dist/index.d.ts",
|
||||
"require": "./dist/index.d.cts"
|
||||
},
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@tiptap/core": "^3.21.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tiptap/core": "^3.21.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ueberdosis/tiptap",
|
||||
"directory": "packages/extension-italic"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
||||
}
|
||||
}
|
||||
5
node_modules/@tiptap/extension-italic/src/index.ts
generated
vendored
Normal file
5
node_modules/@tiptap/extension-italic/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Italic } from './italic.js'
|
||||
|
||||
export * from './italic.js'
|
||||
|
||||
export default Italic
|
||||
160
node_modules/@tiptap/extension-italic/src/italic.ts
generated
vendored
Normal file
160
node_modules/@tiptap/extension-italic/src/italic.ts
generated
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
import { Mark, markInputRule, markPasteRule, mergeAttributes } from '@tiptap/core'
|
||||
|
||||
export interface ItalicOptions {
|
||||
/**
|
||||
* HTML attributes to add to the italic element.
|
||||
* @default {}
|
||||
* @example { class: 'foo' }
|
||||
*/
|
||||
HTMLAttributes: Record<string, any>
|
||||
}
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
italic: {
|
||||
/**
|
||||
* Set an italic mark
|
||||
* @example editor.commands.setItalic()
|
||||
*/
|
||||
setItalic: () => ReturnType
|
||||
/**
|
||||
* Toggle an italic mark
|
||||
* @example editor.commands.toggleItalic()
|
||||
*/
|
||||
toggleItalic: () => ReturnType
|
||||
/**
|
||||
* Unset an italic mark
|
||||
* @example editor.commands.unsetItalic()
|
||||
*/
|
||||
unsetItalic: () => ReturnType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Matches an italic to a *italic* on input.
|
||||
*/
|
||||
export const starInputRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/
|
||||
|
||||
/**
|
||||
* Matches an italic to a *italic* on paste.
|
||||
*/
|
||||
export const starPasteRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g
|
||||
|
||||
/**
|
||||
* Matches an italic to a _italic_ on input.
|
||||
*/
|
||||
export const underscoreInputRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/
|
||||
|
||||
/**
|
||||
* Matches an italic to a _italic_ on paste.
|
||||
*/
|
||||
export const underscorePasteRegex = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g
|
||||
|
||||
/**
|
||||
* This extension allows you to create italic text.
|
||||
* @see https://www.tiptap.dev/api/marks/italic
|
||||
*/
|
||||
export const Italic = Mark.create<ItalicOptions>({
|
||||
name: 'italic',
|
||||
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {},
|
||||
}
|
||||
},
|
||||
|
||||
parseHTML() {
|
||||
return [
|
||||
{
|
||||
tag: 'em',
|
||||
},
|
||||
{
|
||||
tag: 'i',
|
||||
getAttrs: node => (node as HTMLElement).style.fontStyle !== 'normal' && null,
|
||||
},
|
||||
{
|
||||
style: 'font-style=normal',
|
||||
clearMark: mark => mark.type.name === this.name,
|
||||
},
|
||||
{
|
||||
style: 'font-style=italic',
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['em', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]
|
||||
},
|
||||
|
||||
addCommands() {
|
||||
return {
|
||||
setItalic:
|
||||
() =>
|
||||
({ commands }) => {
|
||||
return commands.setMark(this.name)
|
||||
},
|
||||
toggleItalic:
|
||||
() =>
|
||||
({ commands }) => {
|
||||
return commands.toggleMark(this.name)
|
||||
},
|
||||
unsetItalic:
|
||||
() =>
|
||||
({ commands }) => {
|
||||
return commands.unsetMark(this.name)
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
markdownTokenName: 'em',
|
||||
|
||||
parseMarkdown: (token, helpers) => {
|
||||
// Convert 'em' token to italic mark
|
||||
return helpers.applyMark('italic', helpers.parseInline(token.tokens || []))
|
||||
},
|
||||
|
||||
markdownOptions: {
|
||||
htmlReopen: {
|
||||
open: '<em>',
|
||||
close: '</em>',
|
||||
},
|
||||
},
|
||||
|
||||
renderMarkdown: (node, h) => {
|
||||
return `*${h.renderChildren(node)}*`
|
||||
},
|
||||
|
||||
addKeyboardShortcuts() {
|
||||
return {
|
||||
'Mod-i': () => this.editor.commands.toggleItalic(),
|
||||
'Mod-I': () => this.editor.commands.toggleItalic(),
|
||||
}
|
||||
},
|
||||
|
||||
addInputRules() {
|
||||
return [
|
||||
markInputRule({
|
||||
find: starInputRegex,
|
||||
type: this.type,
|
||||
}),
|
||||
markInputRule({
|
||||
find: underscoreInputRegex,
|
||||
type: this.type,
|
||||
}),
|
||||
]
|
||||
},
|
||||
|
||||
addPasteRules() {
|
||||
return [
|
||||
markPasteRule({
|
||||
find: starPasteRegex,
|
||||
type: this.type,
|
||||
}),
|
||||
markPasteRule({
|
||||
find: underscorePasteRegex,
|
||||
type: this.type,
|
||||
}),
|
||||
]
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user