Skip to content

Commit

Permalink
see #352 add TODO for textual cover page
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Dec 25, 2022
1 parent 222631b commit 1190952
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/asciidoctor-epub3/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ def convert_document node
landmarks = []

front_cover = add_cover_page node, 'front-cover'
if front_cover.nil? && @format != :kf8 && node.doctype == 'book'
# TODO(#352): add textual front cover similar to PDF
end

landmarks << { type: 'cover', href: front_cover.href, title: 'Front Cover' } unless front_cover.nil?

front_matter_page = add_front_matter_page node
Expand Down Expand Up @@ -1354,7 +1358,7 @@ def add_theme_assets doc

# @param doc [Asciidoctor::Document]
# @param name [String]
# @return [nil]
# @return [GEPUB::Item, nil]
def add_cover_page doc, name
image_attr_name = %(#{name}-image)

Expand Down

0 comments on commit 1190952

Please sign in to comment.