Skip to content

Commit

Permalink
resolves #703 treat abstract section as abstract block (PR #733)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux authored Jan 12, 2017
1 parent c2d9eda commit f90029f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/asciidoctor-pdf/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ def build_pdf_info doc
end

def convert_section sect, opts = {}
if sect.special && sect.sectname == 'abstract'
# HACK cheat a bit to hide this section from TOC; TOC should filter these sections
sect.context = :open
return convert_abstract sect
end

theme_font :heading, level: (hlevel = sect.level + 1) do
title = sect.numbered_title formal: true
align = (@theme[%(heading_h#{hlevel}_align)] || @theme.heading_align || @base_align).to_sym
Expand Down

0 comments on commit f90029f

Please sign in to comment.