diff --git a/README.md b/README.md index 97e31b6..a990c5b 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ ![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif) -> Standardize all IPFS Readme.md's and other markdown files \ No newline at end of file +> Standardize all IPFS Readme.md's and other markdown files diff --git a/index.js b/index.js index aa0e303..5eaaee4 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,13 @@ var mdast = require('mdast') -// var lint = require('mdast-lint') +var lint = require('mdast-lint') var fs = require('graceful-fs') var remarkTitle = require('remark-title') -var doc = '/Users/richard/src/ipfs-readme-standard/README.md' +var doc = './README.md' // TODO Replace README with readme option fs.writeFileSync(doc, mdast().use(remarkTitle, { title: 'IPFS Readme Standard' -}).process( +}, lint).process( fs.readFileSync(doc, 'utf8'), function (err, file, res) { if (err) { console.log(err) diff --git a/package.json b/package.json index a471e26..41960bf 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,10 @@ }, "homepage": "https://github.com/ipfs/ipfs-readme-standard#readme", "dependencies": { - "fs": "0.0.2", "graceful-fs": "^4.1.2", "mdast": "^2.1.0", - "mdast-lint": "^1.1.1" + "mdast-lint": "^1.1.1", + "remark-title": "^1.0.0" }, "devDependencies": { "babel-cli": "^6.3.17"