Update for changes in remark (#22)
This commit is contained in:
@ -46,8 +46,8 @@
|
||||
"react": "^15.0.2",
|
||||
"react-dom": "^15.0.2",
|
||||
"react-pure-render": "^1.0.2",
|
||||
"remark": "^5.0.1",
|
||||
"remark-html": "^5.0.0",
|
||||
"remark": "^7.0.0",
|
||||
"remark-html": "^6.0.0",
|
||||
"remark-slug": "^4.1.0",
|
||||
"standard-version": "^4.0.0",
|
||||
"unist-util-select": "^1.3.0",
|
||||
@ -59,7 +59,7 @@
|
||||
"cz-conventional-changelog": "1.2.0",
|
||||
"expect": "^1.13.4",
|
||||
"mocha": "^2.3.4",
|
||||
"to-vfile": "^1.0.0",
|
||||
"to-vfile": "^2.0.0",
|
||||
"uglifyjs": "^2.4.10"
|
||||
},
|
||||
"config": {
|
||||
|
@ -12,7 +12,7 @@ function renderHighlighted(nodes) {
|
||||
.stringify(remark()
|
||||
.use(remarkHighlight)
|
||||
.use(remarkPlugins)
|
||||
.run({
|
||||
.runSync({
|
||||
type: 'root',
|
||||
children: nodes
|
||||
})))
|
||||
|
@ -8,7 +8,7 @@ import content from './custom/content';
|
||||
|
||||
var ast = remark()
|
||||
.use(slug)
|
||||
.run(remark().parse(content));
|
||||
.runSync(remark().parse(content));
|
||||
|
||||
ReactDOM.render(
|
||||
<App ast={ast} content={content} />,
|
||||
|
@ -8,7 +8,7 @@ import fs from 'fs';
|
||||
|
||||
var ast = remark()
|
||||
.use(slug)
|
||||
.run(remark().parse(content));
|
||||
.runSync(remark().parse(content));
|
||||
|
||||
var template = fs.readFileSync('./index.html', 'utf8');
|
||||
|
||||
|
Reference in New Issue
Block a user