summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib/readme.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-12-22 13:12:16 +0100
committerSamy Pessé <samypesse@gmail.com>2016-12-22 13:12:16 +0100
commit97f2c333a87b9d939b5a7dc2884590c971b53291 (patch)
treea22824b02d84a89e59c458c8af7d3494561d43f6 /packages/gitbook-html/lib/readme.js
parent627e6dd866f77ff497a21f0b706490b82e40ea0e (diff)
downloadgitbook-97f2c333a87b9d939b5a7dc2884590c971b53291.zip
gitbook-97f2c333a87b9d939b5a7dc2884590c971b53291.tar.gz
gitbook-97f2c333a87b9d939b5a7dc2884590c971b53291.tar.bz2
Import and adapt gitbook-html
Refactor to remove lodash and q as dependencies
Diffstat (limited to 'packages/gitbook-html/lib/readme.js')
-rwxr-xr-xpackages/gitbook-html/lib/readme.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/gitbook-html/lib/readme.js b/packages/gitbook-html/lib/readme.js
index 34e447e..771b525 100755
--- a/packages/gitbook-html/lib/readme.js
+++ b/packages/gitbook-html/lib/readme.js
@@ -1,12 +1,13 @@
-var _ = require('lodash');
+'use strict';
+
var dom = require('./dom');
/**
- Parse an HTML content into metadata about a readme
-
- @param {String} html
- @return {Object}
-*/
+ * Parse an HTML content into metadata about a readme
+ *
+ * @param {String} html
+ * @return {Object}
+ */
function parseReadme(html) {
var $ = dom.parse(html);
@@ -16,6 +17,5 @@ function parseReadme(html) {
};
}
-
-// Exports
module.exports = parseReadme;
+//# sourceMappingURL=readme.js.map \ No newline at end of file