@tiptap/core 2.1.14 → 2.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "2.1.14",
4
+ "version": "2.1.15",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "devDependencies": {
35
- "@tiptap/pm": "^2.1.14"
35
+ "@tiptap/pm": "^2.1.15"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tiptap/pm": "^2.0.0"
@@ -40,6 +40,7 @@ export function createNodeFromContent(
40
40
  }
41
41
 
42
42
  if (typeof content === 'string') {
43
+ content = content.split('\n').map(part => part.trim()).join('') // we need to remove new lines since the parser will add breaks
43
44
  const parser = DOMParser.fromSchema(schema)
44
45
 
45
46
  return options.slice