Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting a list with md doesnt work #3300

Closed
eduardcotmrf opened this issue Jun 21, 2024 · 1 comment
Closed

Pasting a list with md doesnt work #3300

eduardcotmrf opened this issue Jun 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@eduardcotmrf
Copy link

eduardcotmrf commented Jun 21, 2024

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 eduardcotmrf added the bug Something isn't working label Jun 21, 2024
@abhi-bc
Copy link
Collaborator

abhi-bc commented Oct 26, 2024

It works fine now. Just tried pasting here in the latest version or PlateJS v39.2.1 https://platejs.org/docs/markdown and it was working as expected.

My guess why it was not working in v36 is because createListPlugin() may not have been enabled on docs/serialize-md

You can close this issue now

@zbeyens zbeyens closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants