diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-12-22 13:12:16 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 13:12:16 +0100 |
commit | 97f2c333a87b9d939b5a7dc2884590c971b53291 (patch) | |
tree | a22824b02d84a89e59c458c8af7d3494561d43f6 /packages/gitbook-html/lib/langs.js | |
parent | 627e6dd866f77ff497a21f0b706490b82e40ea0e (diff) | |
download | gitbook-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/langs.js')
-rwxr-xr-x | packages/gitbook-html/lib/langs.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/gitbook-html/lib/langs.js b/packages/gitbook-html/lib/langs.js index a06d3ee..f799b50 100755 --- a/packages/gitbook-html/lib/langs.js +++ b/packages/gitbook-html/lib/langs.js @@ -1,12 +1,12 @@ -var _ = require('lodash'); +'use strict'; + var parseSummary = require('./summary'); /** - Parse an HTML content into a list of language - - @param {String} html - @return {Array} -*/ + * Parse an HTML content into a list of language. + * @param {String} html + * @return {Array} + */ function parseLangs(content) { var parts = parseSummary(content).parts; if (parts.length > 0) { @@ -17,4 +17,4 @@ function parseLangs(content) { } module.exports = parseLangs; - +//# sourceMappingURL=langs.js.map
\ No newline at end of file |