mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 12:41:44 +02:00
fix release script, update code highlighting example
This commit is contained in:
@@ -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: {
|
||||||
|
@@ -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",
|
||||||
|
Reference in New Issue
Block a user