1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 21:21:21 +02:00

fix release script, update code highlighting example

This commit is contained in:
Ian Storm Taylor
2016-08-15 14:44:44 -07:00
parent 3e4fdcbfbf
commit d49b792e99
2 changed files with 3 additions and 3 deletions

View File

@@ -94,8 +94,8 @@ function codeBlockDecorator(text, block) {
const schema = { const schema = {
nodes: { nodes: {
code: { code: {
component: CodeBlock, render: CodeBlock,
decorator: codeBlockDecorator, decorate: codeBlockDecorator,
} }
}, },
marks: { marks: {

View File

@@ -87,7 +87,7 @@
"lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'", "lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'",
"open": "open http://localhost:8080/dev.html", "open": "open http://localhost:8080/dev.html",
"prepublish": "npm run dist", "prepublish": "npm run dist",
"publish": "np", "release": "np",
"start": "http-server ./examples", "start": "http-server ./examples",
"test": "npm-run-all lint dist:npm tests", "test": "npm-run-all lint dist:npm tests",
"tests": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js", "tests": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js",