Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dragging multiple image files inserts malformed markdown #167
If I drag a single image file into MDE, then I get a nice link. If I drag multiple files, then MDE malforms the links by inserting the markdown for the second image inside the markdown for the first and so on. This description makes no sense, so an example.
I drag two image files (both located in the same folder as my document) into MDE. The first is called
I would expect to get something like this
But instead get
(including an extra blank line that doesn't appear in the above block)
Surprised you can't repro, it happens pretty much all the time for me. Doesn't seem to be related to any document or set of file names that I've observed.
Title ===== Some words
I stuck my cursor on the blank line, in case it was something to do with dragging before or after the cursor (doesn't seem to be). Then I tried dragging a pair of image files
Didn't seem to matter where I dropped the files, invariably, they were munged into a corrupt form.
The only exception that seems solid was if I dropped the image files past the last line of the document - then they were inserted properly. Or, if the document was fully empty. Apart from those two conditions, malformed markdown was virtually always.