diff --git a/src/nodes/Image.js b/src/nodes/Image.js index f9384ff981e..71d2a2daeda 100644 --- a/src/nodes/Image.js +++ b/src/nodes/Image.js @@ -96,6 +96,7 @@ const Image = TiptapImage.extend({ /* Serializes an image node as a block image, so it ensures an image is always a block by itself */ toMarkdown(state, node, parent, index) { + node.attrs.alt = node.attrs.alt.toString() defaultMarkdownSerializer.nodes.image(state, node, parent, index) state.closeBlock(node) },