diff options
Diffstat (limited to 'packages/gitbook-asciidoc/lib/utils')
-rw-r--r-- | packages/gitbook-asciidoc/lib/utils/convert.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/packages/gitbook-asciidoc/lib/utils/convert.js b/packages/gitbook-asciidoc/lib/utils/convert.js deleted file mode 100644 index 8a19638..0000000 --- a/packages/gitbook-asciidoc/lib/utils/convert.js +++ /dev/null @@ -1,21 +0,0 @@ -var asciidoctor = require('asciidoctor.js')(); -var opal = asciidoctor.Opal; - -var processor = null; -var useExtensions = true; - -if (useExtensions) { - processor = asciidoctor.Asciidoctor(true); -} else { - processor = asciidoctor.Asciidoctor(); -} - - -var convert = function(content) { - var options = opal.hash2(['attributes'], {'attributes': 'showtitle'}); - - var html = processor.$convert(content, options); - return html; -}; - -module.exports = convert; |