Fix ProseMirror failing to parse Markdown images

pull/443/head
Matt Baer 4 years ago
parent 636c9b35c0
commit 9aa5fc4420
  1. 2
      prose/markdownParser.js

@ -31,7 +31,7 @@ export const writeAsMarkdownParser = new MarkdownParser(
getAttrs: (tok) => ({
src: tok.attrGet("src"),
title: tok.attrGet("title") || null,
alt: tok.children?.[0].content || null,
alt: (tok.children !== null && typeof tok.children[0] !== 'undefined' ? tok.children[0].content : null),
}),
},
hardbreak: { node: "hard_break" },

Loading…
Cancel
Save