Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
Update for remark@7.0.0 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm authored and ben-eb committed Apr 25, 2017
1 parent fcdbf7e commit ca53be7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var remark = require('remark');
var comments = require('remark-comment-blocks');

var markdown = 'Hello, world!';
var result = remark.use(comments).process(markdown);
var result = remark.use(comments).processSync(markdown);
console.log(result);
```

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test-012": "nyc ava src/__tests__"
},
"devDependencies": {
"ava": "^0.17.0",
"ava": "^0.18.0",
"babel-cli": "^6.5.1",
"babel-core": "^6.5.2",
"babel-plugin-add-module-exports": "^0.2.0",
Expand All @@ -30,7 +30,7 @@
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^2.0.1",
"nyc": "^10.0.0",
"remark": "^6.0.0"
"remark": "^7.0.0"
},
"dependencies": {
"trim-right": "^1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const specs = directory(base).reduce((tests, contents) => {
Object.keys(specs).forEach(name => {
const spec = specs[name];
ava(name, t => {
const {contents} = remark().use(comments).process(spec.fixture);
const {contents} = remark().use(comments).processSync(spec.fixture);
t.deepEqual(contents, spec.expected);
});
});
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import trimRight from 'trim-right';

export default function (remark, opts) {
const {visitors} = remark.Compiler.prototype;
export default function (opts) {
const {visitors} = this.Compiler.prototype;
const {root} = visitors;

const {start, middle, end} = {
Expand Down

0 comments on commit ca53be7

Please sign in to comment.