fix: resolve TypeScript errors in frontend build
This commit is contained in:
5
node_modules/@tiptap/extension-text/src/index.ts
generated
vendored
Normal file
5
node_modules/@tiptap/extension-text/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Text } from './text.js'
|
||||
|
||||
export * from './text.js'
|
||||
|
||||
export default Text
|
||||
20
node_modules/@tiptap/extension-text/src/text.ts
generated
vendored
Normal file
20
node_modules/@tiptap/extension-text/src/text.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
/**
|
||||
* This extension allows you to create text nodes.
|
||||
* @see https://www.tiptap.dev/api/nodes/text
|
||||
*/
|
||||
export const Text = Node.create({
|
||||
name: 'text',
|
||||
group: 'inline',
|
||||
|
||||
parseMarkdown: token => {
|
||||
// Convert 'text' token to text node - text nodes are special as they store text directly
|
||||
return {
|
||||
type: 'text',
|
||||
text: token.text || '',
|
||||
}
|
||||
},
|
||||
|
||||
renderMarkdown: node => node.text || '',
|
||||
})
|
||||
Reference in New Issue
Block a user