diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-20 15:30:27 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:32:14 +0100 |
commit | c1c17a273ae45c653a0c7d2cc64fabbb5b42e224 (patch) | |
tree | 526eff188d5799762191b46d2dfb8009b6c57398 /packages/gitbook-html/lib/langs.js | |
parent | 21fe8961d7ac91a49c49c28052fc2de4f251f409 (diff) | |
download | gitbook-c1c17a273ae45c653a0c7d2cc64fabbb5b42e224.zip gitbook-c1c17a273ae45c653a0c7d2cc64fabbb5b42e224.tar.gz gitbook-c1c17a273ae45c653a0c7d2cc64fabbb5b42e224.tar.bz2 |
Improve gitbook -> text
Diffstat (limited to 'packages/gitbook-html/lib/langs.js')
-rwxr-xr-x | packages/gitbook-html/lib/langs.js | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/packages/gitbook-html/lib/langs.js b/packages/gitbook-html/lib/langs.js index 270a9f6..035091b 100755 --- a/packages/gitbook-html/lib/langs.js +++ b/packages/gitbook-html/lib/langs.js @@ -6,19 +6,5 @@ function parseLangs(content) { return parseSummary(content).parts[0].articles; } -// Languages -> HTML -function langsToText(langs) { - var bl = '\n'; - var content = '<h1>Languages</h1>'+bl+bl; - - content += '<ul>' + bl; - _.each(langs, function(lang) { - content = content + ' <li><a href="'+lang.path+'">'+lang.title+'</a></li>'+bl; - }); - content += '</ul>' + bl; - - return content; -} - module.exports = parseLangs; -module.exports.toText = langsToText; + |