PublicLab.Editor
PublicLab.Editor copied to clipboard
Numbering bug in links for images VS hyperlinks
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.
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!
Here's another gif showing the exact same numbering bug in the two-part list created by Markdown:
PUBLISHED to GCI dashboard
@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.