Monorepo for Tangled tangled.org

dropping multiple files into markdown field nests the img tags #4809

Open naikaayush.com
Open opened by naikaayush.com

when i drag and drop 2+ files into a markdown field, the img tags end up nested.

each file's tag gets inserted inside the previous one's alt instead of after it:

<img alt="

<img alt="Image" src="https://tangled.org/blob/did:plc:j5hmlfdrwkvtxm7cjmu7j2is/bafkreihc2xskw35xhma7ytn3cunbwwlmh4f7jkbclsnguctlyjcjyxkeq4" width="3680" height="2392">

" src="https://tangled.org/blob/did:plc:j5hmlfdrwkvtxm7cjmu7j2is/bafkreiawslclsnkm2v64odvxymnmlqkh3isggilsvgyy6uht6di3rhissa" width="3680" height="2392">

looks like it handles the files one after the other, and the cursor is still inside the first tag when the second one gets inserted. dropping one file works fine.

Sign up or Sign in to add to the discussion.