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

Commit

Permalink
Merge 849b855 into 808bfad
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeperio-bot committed Aug 19, 2016
2 parents 808bfad + 849b855 commit 296d8cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.es5.js
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import mdast from 'mdast';
import mdtextr from 'mdast-textr';
import remark from 'remark';
import remarkTextr from 'remark-textr';
import base from 'typographic-base';

export default function typographicMarkdown(
text = '',
options = { locale: 'en-us' },
plugins = [ base ]
) {
return mdast.use(mdtextr, {
return remark().use(remarkTextr, {
options: Array.isArray(options) ? { locale: 'en-us' } : options,
plugins: Array.isArray(options) ? options : plugins
}).process(text).trim();
}).process(text).toString().trim();
};
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"prepublish": "npm run transpile",
"clean": "rimraf index.es5.js",
"push": "git push --follow-tags",
"lint": "eslint .",
"postpublish": "npm-run-all clean push"
},
"repository": {
Expand Down Expand Up @@ -41,19 +42,20 @@
"assert": "*",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
"babel-eslint": "^4.1.5",
"babel-plugin-add-module-exports": "^0.1.1",
"babel-eslint": "^6.1.2",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.1.18",
"coveralls": "*",
"eslint": "^3.3.1",
"isparta": "*",
"mocha": "*",
"npm-run-all": "*",
"rimraf": "*",
"typographic-quotes": "^2.0.1"
},
"dependencies": {
"mdast": "^2.2.2",
"mdast-textr": "^1.0.0",
"remark": "^5.1.0",
"remark-textr": "^2.0.2",
"typographic-base": "^1.0.3"
}
}

0 comments on commit 296d8cb

Please sign in to comment.