summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-13 10:55:32 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-13 10:55:32 +0200
commitfb430ac1edc7cf35a75994b0fd7e114995edaf95 (patch)
tree5088eee6d6a4798dfd9ffa42e39aa49c4838c8a6 /lib/page
parent53cfa3703b0ab9756dd773fb5fe7de2b9cbf0085 (diff)
downloadgitbook-fb430ac1edc7cf35a75994b0fd7e114995edaf95.zip
gitbook-fb430ac1edc7cf35a75994b0fd7e114995edaf95.tar.gz
gitbook-fb430ac1edc7cf35a75994b0fd7e114995edaf95.tar.bz2
Increase size of extracted description
Diffstat (limited to 'lib/page')
-rw-r--r--lib/page/html.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/page/html.js b/lib/page/html.js
index bce6cd2..329b626 100644
--- a/lib/page/html.js
+++ b/lib/page/html.js
@@ -184,8 +184,8 @@ HTMLPipeline.prototype.applyAnnotations = function() {
// Extract page description from html
// This can totally be improved
HTMLPipeline.prototype.extractDescription = function() {
- var $p = this.$('p').first();
- var description = $p.text().trim().slice(0, 155);
+ var $p = this.$('p');
+ var description = $p.text().trim().slice(0, 300);
this.opts.onDescription(description);
};