Update for changes in remark (#22)
This commit is contained in:
@ -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