PublicLab.Editor icon indicating copy to clipboard operation
PublicLab.Editor copied to clipboard

Numbering bug in links for images VS hyperlinks

Open ebarry opened this issue 5 years ago • 3 comments

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve?

I am using this Editor to compose a long note of more than 5000 words plus images and text.

Something is happening in Markdown resulting in breaking image links. I will attempt to describe it:

In the gif i recorded, you can see the two-part list created by Markdown placing the image-links above the hyperlinks. (FYI, previously, i tried to combine these into one list and had a lot of trouble with Markdown overwriting, so i accepted Markdown's preference for a two-part list of image-links above hyperlinks, with numerical order switching back and forth according to the order that images and hyperlinks appear in my note.)

You can observe that when i drag a new image into the Editor, a link is created which numbers it as the next hyperlink...unfortunately, this number is already in use in by an existing image-link.

To fix this, watch me move the image-link from the hyperlink list up to the portion of the list containing image-links, then renumber it in both places. I also need to fix the overwritten hyperlink numbers in the list of hyperlinks and in the body of my note. I experience this as an unsustainable editing experience.

markdown-linkVSimage-numbering-bug

What did you expect to see that you didn't?

I would have expected Markdown to either:

  • create one list of numbered links no matter whether its an image or a hyperlink

OR:

  • be able to keep track of discontinuous numbering as it splits image-links and hyperlinks into two portions of a list

Please show us where to look

https://publiclab.org/post

What's your PublicLab.org username?

This can help us diagnose the issue:

liz

Browser, version, and operating system

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!

Chrome on Mac 10.13.6


Thank you!

ebarry avatar Apr 15 '19 15:04 ebarry

Here's another gif showing the exact same numbering bug in the two-part list created by Markdown:

markdown-linkVSimage-numbering-bug2

ebarry avatar Apr 15 '19 16:04 ebarry

PUBLISHED to GCI dashboard

SidharthBansal avatar Nov 27 '19 17:11 SidharthBansal

@ebarry I've tested this with more than 5000 words and editor works fine.

I would have expected Markdown to either: create one list of numbered links no matter whether its an image or a hyperlink

This is what the editor does by default, you must have edited the links and created a bug. Demo You are not supposed to edit these! That's how the issue arises, the editor loses control of what has been inserted.

Thanks.

VladimirMikulic avatar Jan 12 '20 10:01 VladimirMikulic