Parserfixes std (#11)

* clean svg and cdata
* refactored ebook preparation, separated from calling the pager
* added better unit tests
* add free ebooks for testing
This commit is contained in:
T.v.Dein
2025-10-21 21:57:12 +02:00
committed by GitHub
parent f524083210
commit 238972f11f
22 changed files with 155 additions and 27 deletions

View File

@@ -59,7 +59,21 @@ func Execute(output io.Writer) int {
}
}
progress, err := View(conf)
ebook, err := Prepare(conf)
if err != nil {
return Die(err)
}
if conf.Dump {
fmt.Println(ebook.Body)
return 0
}
if conf.Debug || conf.XML {
return 0
}
progress, err := Pager(ebook)
if err != nil {
return Die(err)
}