asciidoctor / asciidoctor-leanpub-converter

A backend for AsciidoctorJ to generate Leanpub-flavoured Markdown
Apache License 2.0
16 stars 9 forks source link

Control encoding of document #7

Open ysb33r opened 9 years ago

ysb33r commented 9 years ago

Need to send an encoding attribute at the start of the document.

{:: encoding="utf-8" /} 

Need to take care of adding this before preface (if it exists) or otherwise before first chapter.

Also allow this to be controlled with a document attribute :leanpub_encoding: