diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-04-15 23:38:28 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-04-15 23:38:28 -0600 |
| commit | 3aa491476d23890136c7e018e6cfad7800f0a082 (patch) | |
| tree | 0980ffcaaf76ebadd913439ee5ac898fced4a3b2 | |
| parent | 6ac3372c64a46f725803f2e76736995a96f30086 (diff) | |
add option to set htmlsyntax in converter
| -rw-r--r-- | lib/asciidoctor/converter.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/asciidoctor/converter.rb b/lib/asciidoctor/converter.rb index d819f542..026e7e00 100644 --- a/lib/asciidoctor/converter.rb +++ b/lib/asciidoctor/converter.rb @@ -82,11 +82,13 @@ module Asciidoctor base = 'html' ext = '.html' type = 'html' + syntax = 'html' end { 'basebackend' => base, 'outfilesuffix' => ext, 'filetype' => type, + 'htmlsyntax' => syntax } end @@ -113,6 +115,14 @@ module Asciidoctor backend_info['outfilesuffix'] end end + + def htmlsyntax value = nil + if value + backend_info['htmlsyntax'] = value + else + backend_info['htmlsyntax'] + end + end end class << self |
