{"version":3,"file":"index.cjs","names":["Node"],"sources":["../src/text.ts","../src/index.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\n/**\n * This extension allows you to create text nodes.\n * @see https://www.tiptap.dev/api/nodes/text\n */\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n\n parseMarkdown: token => {\n // Convert 'text' token to text node - text nodes are special as they store text directly\n return {\n type: 'text',\n text: token.text || '',\n }\n },\n\n renderMarkdown: node => node.text || '',\n})\n","import { Text } from './text.js'\n\nexport * from './text.js'\n\nexport default Text\n"],"mappings":";;;;;;;;;AAMA,MAAa,6BAAOA,CAAAA,CAAAA,KAAK,OAAO;CAC9B,MAAM;CACN,OAAO;CAEP,gBAAe,UAAS;EAEtB,OAAO;GACL,MAAM;GACN,MAAM,MAAM,QAAQ;EACtB;CACF;CAEA,iBAAgB,SAAQ,KAAK,QAAQ;AACvC,CAAC;;;ACfD,IAAA,cAAe"}