rich-text icon indicating copy to clipboard operation
rich-text copied to clipboard

Images are being parsed as links

Open ai-slave opened this issue 2 years ago • 1 comments

ai-slave avatar Jul 29 '22 23:07 ai-slave

When I'm using html-to-slate-ast:

<img src="https://media.graphassets.com/CgZ9oAgJRUyjnA2rj2x4" alt="Trailing twelve months statement" /> is being transformed as

{
  type: 'link',
  href: 'https://media.graphassets.com/CgZ9oAgJRUyjnA2rj2x4',
  title: 'Trailing twelve months statement',
  openInNewTab: true,
  children: [Array]
},

ai-slave avatar Jul 29 '22 23:07 ai-slave