web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Copying unordered list into markdown editor causes weird behavior

Open Michael-Grover opened this issue 4 years ago • 12 comments

Bug Report 🐛

Copying an unordered list from outside of the markdown editor into markdown editor causes weird behavior, including:

  1. the bulleted list can not be escaped by pressing enter twice

  2. The unordered list icon in the formatting toolbar is not highlighted

  3. The bullets are not indented

  4. Pressing the unordered list icon while highlighting a bulleted list that was pasted from an outside source results in the content of the list disappearing

Expected Behavior

If a user copies an unordered list from outside of the markdown editor and pastes it into the markdown editor, it should function the same as a list created in the markdown editor.

Michael-Grover avatar Jul 22 '20 21:07 Michael-Grover

Works (kinda) for me?

CopyList

jeromesimeon avatar Jul 22 '20 21:07 jeromesimeon

It's only unordered lists copied from sources outside of the markdown editor

Michael-Grover avatar Jul 22 '20 22:07 Michael-Grover

It's only unordered lists copied from sources outside of the markdown editor

Behaviour on copy/paste from other sources will be highly dependent on the source (pdf, html, which page, etc).

Can you please provide details so we can reproduce.

jeromesimeon avatar Jul 23 '20 00:07 jeromesimeon

This is one example of a bulleted list that causes the issue

https://site.uit.no/english/writing-style/bulletlist/ image

Michael-Grover avatar Jul 23 '20 15:07 Michael-Grover

hm... seems to work for me. Maybe I'm doing it wrong?

CopyListAgain

jeromesimeon avatar Jul 23 '20 15:07 jeromesimeon

the bug only occurs if you copy and paste the highlighted area in this image image

Michael-Grover avatar Jul 23 '20 15:07 Michael-Grover

it looks like copying the line before the bulleted list makes the bug not occur

Michael-Grover avatar Jul 23 '20 15:07 Michael-Grover

@Michael-Grover Can you assign this to me? If I get some kind of guidance I will definitely complete this issue :D

Hanaffi avatar Mar 16 '21 15:03 Hanaffi

@Hanaffi what sort of things do you need guidance on at the moment?

jolanglinais avatar Mar 16 '21 18:03 jolanglinais

@irmerk Can you tell me which file should I work on? What may be the cause for this issue? I tried it and only the first item doesnt fit in the unordered list (Aka doesnt have a bullet) zz

Hanaffi avatar Mar 17 '21 19:03 Hanaffi

In the short term, I don't know. I think this Issue will take some investigating.

jolanglinais avatar Mar 17 '21 20:03 jolanglinais

I'm cleaning up old issues I created and it looks like this one hasn't been resolved, so I'm keeping it open

Michael-Grover avatar Sep 23 '21 14:09 Michael-Grover