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

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

View File

@ -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} />,

View File

@ -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');