Update for changes in remark (#22)

This commit is contained in:
Titus
2017-03-02 20:07:50 +01:00
committed by Tom MacWright
parent d20007cac7
commit 95c5d705a1
4 changed files with 6 additions and 6 deletions

View File

@ -46,8 +46,8 @@
"react": "^15.0.2", "react": "^15.0.2",
"react-dom": "^15.0.2", "react-dom": "^15.0.2",
"react-pure-render": "^1.0.2", "react-pure-render": "^1.0.2",
"remark": "^5.0.1", "remark": "^7.0.0",
"remark-html": "^5.0.0", "remark-html": "^6.0.0",
"remark-slug": "^4.1.0", "remark-slug": "^4.1.0",
"standard-version": "^4.0.0", "standard-version": "^4.0.0",
"unist-util-select": "^1.3.0", "unist-util-select": "^1.3.0",
@ -59,7 +59,7 @@
"cz-conventional-changelog": "1.2.0", "cz-conventional-changelog": "1.2.0",
"expect": "^1.13.4", "expect": "^1.13.4",
"mocha": "^2.3.4", "mocha": "^2.3.4",
"to-vfile": "^1.0.0", "to-vfile": "^2.0.0",
"uglifyjs": "^2.4.10" "uglifyjs": "^2.4.10"
}, },
"config": { "config": {

View File

@ -12,7 +12,7 @@ function renderHighlighted(nodes) {
.stringify(remark() .stringify(remark()
.use(remarkHighlight) .use(remarkHighlight)
.use(remarkPlugins) .use(remarkPlugins)
.run({ .runSync({
type: 'root', type: 'root',
children: nodes children: nodes
}))) })))

View File

@ -8,7 +8,7 @@ import content from './custom/content';
var ast = remark() var ast = remark()
.use(slug) .use(slug)
.run(remark().parse(content)); .runSync(remark().parse(content));
ReactDOM.render( ReactDOM.render(
<App ast={ast} content={content} />, <App ast={ast} content={content} />,

View File

@ -8,7 +8,7 @@ import fs from 'fs';
var ast = remark() var ast = remark()
.use(slug) .use(slug)
.run(remark().parse(content)); .runSync(remark().parse(content));
var template = fs.readFileSync('./index.html', 'utf8'); var template = fs.readFileSync('./index.html', 'utf8');