oreillymedia / asciidoctor-htmlbook

Templates for the htmlbook backend for Asciidoctor
45 stars 15 forks source link

Handling for [introduction] #67

Closed sandersk closed 9 years ago

sandersk commented 9 years ago

Hi @sarahs,

This pull request adds handling to convert sections tagged as "introduction" (not a core part of AsciiDoc vocab, but I think it's worth adding support for this customization):

[introduction]
== This is an Introduction

Some text here

To HTMLBook as follows:

<section data-type="introduction">
  <h1>This is an Introduction</h1>
  <p>Some text here</p>
</section>

Could you please review and let me know if this looks good to merge?

Thanks, Sanders