Skip to content

Lists with markdown -> block has degenerate behaviour when run locally, but not in online playground #1645

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

Closed
botkevin opened this issue Apr 25, 2025 · 6 comments · Fixed by #1661
Labels
bug Something isn't working

Comments

@botkevin
Copy link

Describe the bug
Lists in markdown are not being parsed correctly (See this blocknote example). On playground or the blocknotejs website, the parser seems to behave with intended behaviour, but when I pull and run locally (npm install, npm start in directory), the parse generates a degenerate block. Could someone on the team tell me what version of blocknote is running on the playground? Images of degenerate and proper output attached

degen local
Image

correct playground
Image

To Reproduce
I am using test str:

### Steps to Make Cheese

Making cheese involves a series of steps that transform milk into a solid, flavorful product. Here's a basic guide to making a simple cheese:

1. **Gather Ingredients and Equipment:**

   * Fresh milk (preferably whole milk)

   * Rennet (a coagulant)

   * Cheese culture (specific bacteria for cheese-making)

   * Salt

   * Cheesecloth

   * Large pot

   * Thermometer

   * Cheese mold

2. **Prepare the Milk:**

   * Pour the milk into a large pot and slowly heat it to the required temperature (usually around 86°F or 30°C). Stir gently to ensure even heating.

Try it when running locally with any blocknote version listed in Misc- this outputs a degenerate output. Then try it in the online playground. Both playground and blocknotejs.com output correctly.

Misc

  • Node version: v23.11.0
  • Blocknote version: tried 28.0,29.0,29.1
  • Package manager: tried both yarn and npm
  • Browser: firefox
@botkevin botkevin added the bug Something isn't working label Apr 25, 2025
@botkevin botkevin changed the title Lists with markdown -> block and vice versa Lists with markdown -> block has degenerate behaviour when run locally, but not in online playground Apr 25, 2025
@botkevin
Copy link
Author

botkevin commented Apr 25, 2025

After testing with other older versions. I don't believe it's a problem with the blocknote version. There might be some type of dependency downstream? Could someone compare the new package.lock with the one that exists in the playground?
attached is my package-lock
package-lock.json

@botkevin
Copy link
Author

botkevin commented Apr 26, 2025

UPDATE: Found the offending package. We need

  "resolutions": {
    "prosemirror-model": "1.25.0"
  }

Latest prosemirror-model 1.25.1 does not work. Updated 4 days ago https://www.npmjs.com/package/prosemirror-model/v/1.25.1?activeTab=versions

@botkevin
Copy link
Author

After some more digging, it seems that the info objects are being put into "children" instead of "content",

@nperez0111
Copy link
Contributor

Thanks for the research on this, unfortunately I don't have the time to look into this but I do believe it to be introduced by prosemirror.

@YousefED
Copy link
Collaborator

YousefED commented May 5, 2025

We'll dive further into this so we can stay up to date with PM!

@EddyVinck
Copy link

I just wanted to share that I ran into some issues with copy and paste as well as described in #1665

blocknote-copy-paste-bug.mp4

joh-klein added a commit to dytab/ngx-blocknote that referenced this issue May 8, 2025
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

Successfully merging a pull request may close this issue.

4 participants