chore: fix remote image export in markdown

This commit is contained in:
Aman Harwara
2023-10-23 21:09:48 +05:30
parent 5a0f9d49df
commit 40ec5ac2dc
2 changed files with 5 additions and 1 deletions

View File

@@ -75,6 +75,10 @@ export class RemoteImageNode extends DecoratorBlockNode {
return { element }
}
override getTextContent(): string {
return `![${this.__alt || 'image'}](${this.__src})`
}
decorate(_editor: LexicalEditor, config: EditorConfig): JSX.Element {
const embedBlockTheme = config.theme.embedBlock || {}
const className = {