Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-model - npm Package Compare versions

Comparing version 0.24.0 to 1.0.0

4

CONTRIBUTING.md

@@ -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 @@

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc