diff --git a/examples/code-highlighting/index.js b/examples/code-highlighting/index.js index fcf2a99f3..6377fb9c8 100644 --- a/examples/code-highlighting/index.js +++ b/examples/code-highlighting/index.js @@ -94,8 +94,8 @@ function codeBlockDecorator(text, block) { const schema = { nodes: { code: { - component: CodeBlock, - decorator: codeBlockDecorator, + render: CodeBlock, + decorate: codeBlockDecorator, } }, marks: { diff --git a/package.json b/package.json index 093f97ea3..3b0d83acc 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'", "open": "open http://localhost:8080/dev.html", "prepublish": "npm run dist", - "publish": "np", + "release": "np", "start": "http-server ./examples", "test": "npm-run-all lint dist:npm tests", "tests": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js",