Commit 1257dc8c authored by Yannis Barlas's avatar Yannis Barlas

Merge branch 'title-fix' into 'master'

Fix for h1 titles in toc

See merge request !4
parents 62ce7b72 395f6870
......@@ -26,7 +26,7 @@ class HTMLEPUB {
const id = `chapter-${chapter}`
const title = item.title || $('h1').text()
const title = item.title || 'Untitled'
const target = `xhtml/${id}.xhtml`
this.xhtml[index] = { id, $, title, target }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment