# File lib/asciidoctor/parser.rb, line 1598
  def self.is_next_line_section?(reader, attributes)
    if (style = attributes[1]) && (style.start_with? 'discrete', 'float') && (DiscreteHeadingStyleRx.match? style)
      return
    elsif reader.has_more_lines?
      Compliance.underline_style_section_titles ?
          is_section_title?(*reader.peek_lines(2, style && style == 'comment')) :
          atx_section_title?(reader.peek_line)
    end
  end