diff options
Diffstat (limited to 'packages/gitbook-html/lib/totext.js')
-rw-r--r-- | packages/gitbook-html/lib/totext.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/gitbook-html/lib/totext.js b/packages/gitbook-html/lib/totext.js index 13b1cd8..b1c94d4 100644 --- a/packages/gitbook-html/lib/totext.js +++ b/packages/gitbook-html/lib/totext.js @@ -123,6 +123,8 @@ ToText.prototype._summaryArticles = function(articles, level) { ToText.prototype._summaryPart = function(part) { var content = ''; + if (part.title) content += this.onTitleStart(2) + this.onText(part.title) + this.onTitleEnd(2); + content += this._summaryArticles(part.articles); content += this.onSection(); |