Commit 50b1328
authored
feat(markdown): replace unified.js with custom markdown parser/serializer (#2624)
We've decided to move away from shipping the unified.js ecosystem for parsing and serializing to markdown and instead use our own custom parser/serializer. This should significantly reduce bundle-size, if you need to handle more complex edge cases with markdown, we would recommend preprocessing it beforehand and inserting the result into the editor as HTML (which we have better parsing support for).1 parent 8ceea90 commit 50b1328
300 files changed
Lines changed: 13374 additions & 715 deletions
File tree
- docs/content/docs
- features/import
- foundations
- packages
- core
- src/api
- exporters/markdown
- util
- parsers
- html/util
- __snapshots__
- markdown
- server-util/src/context/__snapshots__
- xl-ai
- tests/src/unit
- core/formatConversion
- exportParseEquality
- __snapshots__/markdown/markdown
- export
- __snapshots__
- blocknoteHTML
- audio
- complex
- heading
- image
- link
- lists
- paragraph
- quote
- style
- table
- video
- html
- audio
- complex
- heading
- image
- link
- lists
- paragraph
- quote
- style
- table
- video
- markdown
- audio
- complex
- file
- hardbreak
- heading
- image
- link
- lists
- pageBreak
- paragraph
- quote
- style
- table
- video
- nodes
- audio
- complex
- heading
- image
- link
- lists
- paragraph
- quote
- style
- table
- video
- parse
- __snapshots__/markdown
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 117 | | |
129 | 118 | | |
130 | 119 | | |
131 | 120 | | |
132 | 121 | | |
133 | | - | |
134 | 122 | | |
135 | 123 | | |
136 | 124 | | |
| |||
0 commit comments