prosemirror-model
Advanced tools
Comparing version 0.24.0 to 1.0.0
@@ -37,2 +37,6 @@ # How to contribute | ||
If you want to make a change that involves a significant overhaul of | ||
the code or introduces a user-visible new feature, create an | ||
[RFC](https://github.com/ProseMirror/rfcs/) first with your proposal. | ||
- Make sure you have a [GitHub Account](https://github.com/signup/free) | ||
@@ -39,0 +43,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "0.24.0", | ||
"version": "1.0.0", | ||
"description": "ProseMirror's document model", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"jsdom": "^10.1.0", | ||
"prosemirror-test-builder": "^0.24.0", | ||
"prosemirror-test-builder": "^1.0.0", | ||
"rollup": "^0.49.0", | ||
@@ -28,0 +28,0 @@ "rollup-plugin-buble": "^0.15.0" |
@@ -5,2 +5,3 @@ # prosemirror-model | ||
This is a [core module](http://prosemirror.net/docs/ref/#model) of [ProseMirror](http://prosemirror.net). | ||
ProseMirror is a well-behaved rich semantic content editor based on | ||
@@ -25,1 +26,6 @@ contentEditable, with support for collaborative editing and custom | ||
is the place to report issues. | ||
We aim to be an inclusive, welcoming community. To make that explicit, | ||
we have a [code of | ||
conduct](http://contributor-covenant.org/version/1/1/0/) that applies | ||
to communication around the project. |
@@ -80,3 +80,5 @@ import {Fragment} from "./fragment" | ||
// `"section//"` matches any position inside a section—a double | ||
// slash matches any sequence of ancestor nodes. | ||
// slash matches any sequence of ancestor nodes. To allow multiple | ||
// different contexts, they can be separated by a pipe (`|`) | ||
// character, as in `"blockquote/|list_item/"`. | ||
// | ||
@@ -618,2 +620,5 @@ // node:: ?string | ||
matchesContext(context) { | ||
if (context.indexOf("|") > -1) | ||
return context.split(/\s*\|\s*/).some(this.matchesContext, this) | ||
let parts = context.split("/") | ||
@@ -620,0 +625,0 @@ let option = this.options.context |
@@ -449,4 +449,2 @@ import OrderedMap from "orderedmap" | ||
let warnedAboutMarkSyntax = false | ||
// ::- A document schema. Holds [node](#model.NodeType) and [mark | ||
@@ -483,11 +481,2 @@ // type](#model.MarkType) objects for the nodes and marks that may | ||
let type = this.nodes[prop], contentExpr = type.spec.content || "", markExpr = type.spec.marks | ||
let oldStyle = /<(.*?)>/.test(contentExpr) | ||
if (oldStyle) { | ||
if (!warnedAboutMarkSyntax && typeof console != "undefined" && console.warn) { | ||
warnedAboutMarkSyntax = true | ||
console.warn("Angle-bracket syntax for marks in content expressions is deprecated. Use the `marks` spec property instead.") | ||
} | ||
markExpr = oldStyle[1] | ||
contentExpr = contentExpr.replace(/<(.*?)>/g, "") | ||
} | ||
type.contentMatch = ContentMatch.parse(contentExpr, this.nodes) | ||
@@ -494,0 +483,0 @@ type.inlineContent = type.contentMatch.inlineContent |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
30
459342
5783