@tiptap/extension-emoji 3.6.7 → 3.7.1

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.js CHANGED
@@ -19502,6 +19502,13 @@ var Emoji = Node.create({
19502
19502
  const emojiItem = shortcodeToEmoji(node.attrs.name, this.options.emojis);
19503
19503
  return (emojiItem == null ? void 0 : emojiItem.emoji) || `:${node.attrs.name}:`;
19504
19504
  },
19505
+ renderMarkdown: (node) => {
19506
+ var _a;
19507
+ if (!((_a = node.attrs) == null ? void 0 : _a.name)) {
19508
+ return "";
19509
+ }
19510
+ return `:${node.attrs.name}:`;
19511
+ },
19505
19512
  addCommands() {
19506
19513
  return {
19507
19514
  setEmoji: (shortcode) => ({ chain }) => {