diff options
Diffstat (limited to 'lib/parsers/asciidoc.js')
-rw-r--r-- | lib/parsers/asciidoc.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/parsers/asciidoc.js b/lib/parsers/asciidoc.js deleted file mode 100644 index 84e619d..0000000 --- a/lib/parsers/asciidoc.js +++ /dev/null @@ -1,27 +0,0 @@ -var Asciidoctor = require('asciidoctor.js'); -var htmlParser = require('./html'); - -var asciidoctor = Asciidoctor(); -var opal = asciidoctor.Opal; - -var processor = null; -var useExtensions = true; - -if (useExtensions) { - processor = asciidoctor.Asciidoctor(true); -} else { - processor = asciidoctor.Asciidoctor(); -} - - -// Convert asciidoc to HTML -function asciidocToHTML(content) { - var options = opal.hash2(['attributes'], {'attributes': 'showtitle'}); - return processor.$convert(content, options); -} - - -module.exports = htmlParser.inherits({ - extensions: ['.adoc', '.asciidoc'], - toHTML: asciidocToHTML -}); |