Commit 395f6870 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Fix for h1 titles in toc

parent 62ce7b72
......@@ -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