plate icon indicating copy to clipboard operation
plate copied to clipboard

Pasting a list with md doesnt work

Open eduardcotmrf opened this issue 1 year ago • 0 comments

Description

When pasting a list from md creates it as a bullet list, but doesn't display as it.

Happens on your playground and also on the markdown demo playground.

Reproduction URL

https://platejs.org/docs/serializing-md

Reproduction steps

1. Go to 'https://platejs.org/docs/serializing-md'
2. Paste: 

## Lists

Unordered

+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
  - Marker character change forces new list start:
    * Ac tristique libero volutpat at
    + Facilisis in pretium nisl aliquet
    - Nulla volutpat aliquam velit
+ Very easy!

Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa


1. You can use sequential numbers...
1. ...or keep all the numbers as `1.`


  1. It doesnt display as list.


### Plate version

34.1.0

### Slate React version

0.102.0

### Screenshots

_No response_

### Logs

_No response_

### Browsers

Chrome

<!-- POLAR PLEDGE BADGE START -->
## Funding
* You can sponsor this specific effort via a [Polar.sh](https://polar.sh) pledge below
* We receive the pledge once the issue is completed & verified

<a href="https://polar.sh/udecode/plate/issues/3300">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/udecode/plate/issues/3300/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/udecode/plate/issues/3300/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->

eduardcotmrf avatar Jun 21 '24 09:06 eduardcotmrf