toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.11k stars 358 forks source link

fix: console error when paste markdown that ends with table #7508

Open terran42 opened 1 week ago

terran42 commented 1 week ago

When we paste in markdown text that ends with a table, we get an error. Example markdown:

## test data

| col1  | col2   |
|-------|--------|
| text1 | text2  |

Screenshot of the error:

Screenshot 2024-07-07 at 15 13 25

This PR fixes that.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ❌ Failed (Inspect) Jul 7, 2024 7:17am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **blocksuite-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/toeverything/blocksuite-docs/6MSgp2tQWTa28wdMMdLv6V2XqFqY)) | [Visit Preview](https://blocksuite-docs-git-fork-terran42-master-toeverything.vercel.app) | | Jul 7, 2024 7:17am |
graphite-app[bot] commented 1 week ago

Your org has enabled the Graphite merge queue for merging into master

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

fourdim commented 1 week ago

Hi, could you please accept our CLA? https://github.com/toeverything/blocksuite/edit/master/.github/CLA.md