REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 3.51 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@tiptap/extension-bold/dist/index.umd.js
Text
Base64
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) : typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-bold"] = {}, global.core)); })(this, (function (exports, core) { 'use strict'; /** * Matches bold text via `**` as input. */ const starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/; /** * Matches bold text via `**` while pasting. */ const starPasteRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g; /** * Matches bold text via `__` as input. */ const underscoreInputRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/; /** * Matches bold text via `__` while pasting. */ const underscorePasteRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g; /** * This extension allows you to mark text as bold. * @see https://tiptap.dev/api/marks/bold */ const Bold = core.Mark.create({ name: 'bold', addOptions() { return { HTMLAttributes: {}, }; }, parseHTML() { return [ { tag: 'strong', }, { tag: 'b', getAttrs: node => node.style.fontWeight !== 'normal' && null, }, { style: 'font-weight=400', clearMark: mark => mark.type.name === this.name, }, { style: 'font-weight', getAttrs: value => /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null, }, ]; }, renderHTML({ HTMLAttributes }) { return ['strong', core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]; }, addCommands() { return { setBold: () => ({ commands }) => { return commands.setMark(this.name); }, toggleBold: () => ({ commands }) => { return commands.toggleMark(this.name); }, unsetBold: () => ({ commands }) => { return commands.unsetMark(this.name); }, }; }, addKeyboardShortcuts() { return { 'Mod-b': () => this.editor.commands.toggleBold(), 'Mod-B': () => this.editor.commands.toggleBold(), }; }, addInputRules() { return [ core.markInputRule({ find: starInputRegex, type: this.type, }), core.markInputRule({ find: underscoreInputRegex, type: this.type, }), ]; }, addPasteRules() { return [ core.markPasteRule({ find: starPasteRegex, type: this.type, }), core.markPasteRule({ find: underscorePasteRegex, type: this.type, }), ]; }, }); exports.Bold = Bold; exports.default = Bold; exports.starInputRegex = starInputRegex; exports.starPasteRegex = starPasteRegex; exports.underscoreInputRegex = underscoreInputRegex; exports.underscorePasteRegex = underscorePasteRegex; Object.defineProperty(exports, '__esModule', { value: true }); })); //# sourceMappingURL=index.umd.js.map
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
bold.d.ts
1.20 KB
lrw-r--r--
2026-02-28 00:28:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bold.d.ts.map
665 B
lrw-r--r--
2026-02-28 00:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.cjs
2.94 KB
lrw-r--r--
2026-02-28 00:26:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.cjs.map
4.95 KB
lrw-r--r--
2026-02-28 00:27:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.ts
117 B
lrw-r--r--
2026-02-28 00:28:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.ts.map
185 B
lrw-r--r--
2026-02-28 00:27:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
2.76 KB
lrw-r--r--
2026-02-28 00:26:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js.map
4.87 KB
lrw-r--r--
2026-02-28 00:27:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.umd.js
3.51 KB
lrw-r--r--
2026-02-28 00:26:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.umd.js.map
4.96 KB
lrw-r--r--
2026-02-28 00:27:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).