summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-07-02 22:33:57 +0300
committerGitHub <noreply@github.com>2020-07-02 22:33:57 +0300
commit79ea7e7d8b1ca01b0d93fe307b0b1fd2b5aa22f0 (patch)
treec37f85285bfdf7d3b3560ce5e635bcde76c86818 /lib
parent3a8ee3603101f92ed111a2320eb0e60ba52cb21a (diff)
resolves #123 remove <b> from chapter subtitle (#345)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor-epub3/converter.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb
index 71605aa..829b889 100644
--- a/lib/asciidoctor-epub3/converter.rb
+++ b/lib/asciidoctor-epub3/converter.rb
@@ -343,11 +343,6 @@ module Asciidoctor
subtitle = nil
end
- # By default, Kindle does not allow the line height to be adjusted.
- # But if you float the elements, then the line height disappears and can be restored manually using margins.
- # See https://github.com/asciidoctor/asciidoctor-epub3/issues/123
- subtitle_formatted = subtitle ? subtitle.split.map {|w| %(<b>#{w}</b>) } * ' ' : nil
-
if node.document.doctype == 'book'
byline = ''
else
@@ -379,7 +374,7 @@ module Asciidoctor
header = (title || subtitle) ? %(<header>
<div class="chapter-header">
-#{byline}<h1 class="chapter-title">#{title}#{subtitle ? %(<small class="subtitle">#{subtitle_formatted}</small>) : ''}</h1>
+#{byline}<h1 class="chapter-title">#{title}#{subtitle ? %(<small class="subtitle">#{subtitle}</small>) : ''}</h1>
</div>
</header>) : ''