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

Update all dependencies 🌴 #3

Merged
merged 3 commits into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}