prosemirror-view
Advanced tools
Comparing version 1.23.2 to 1.23.3
{ | ||
"name": "prosemirror-view", | ||
"version": "1.23.2", | ||
"version": "1.23.3", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -76,3 +76,4 @@ import {Slice, Fragment, DOMParser, DOMSerializer} from "prosemirror-model" | ||
ruleFromNode(dom) { | ||
if (dom.nodeName == "BR" && !dom.nextSibling) return {ignore: true} | ||
if (dom.nodeName == "BR" && !dom.nextSibling && | ||
dom.parentNode && !inlineParents.test(dom.parentNode.nodeName)) return {ignore: true} | ||
} | ||
@@ -99,2 +100,4 @@ }) | ||
const inlineParents = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i | ||
// Takes a slice parsed with parseSlice, which means there hasn't been | ||
@@ -101,0 +104,0 @@ // any content-expression checking done on the top nodes, tries to |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1591691
14817