@tiptap/extension-emoji 3.6.6 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/emoji.ts +8 -0
package/dist/index.cjs
CHANGED
|
@@ -19537,6 +19537,13 @@ var Emoji = import_core.Node.create({
|
|
|
19537
19537
|
const emojiItem = shortcodeToEmoji(node.attrs.name, this.options.emojis);
|
|
19538
19538
|
return (emojiItem == null ? void 0 : emojiItem.emoji) || `:${node.attrs.name}:`;
|
|
19539
19539
|
},
|
|
19540
|
+
renderMarkdown: (node) => {
|
|
19541
|
+
var _a;
|
|
19542
|
+
if (!((_a = node.attrs) == null ? void 0 : _a.name)) {
|
|
19543
|
+
return "";
|
|
19544
|
+
}
|
|
19545
|
+
return `:${node.attrs.name}:`;
|
|
19546
|
+
},
|
|
19540
19547
|
addCommands() {
|
|
19541
19548
|
return {
|
|
19542
19549
|
setEmoji: (shortcode) => ({ chain }) => {
|