summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/lib/tohtml.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-asciidoc/lib/tohtml.js')
-rw-r--r--packages/gitbook-asciidoc/lib/tohtml.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/gitbook-asciidoc/lib/tohtml.js b/packages/gitbook-asciidoc/lib/tohtml.js
deleted file mode 100644
index 46203e4..0000000
--- a/packages/gitbook-asciidoc/lib/tohtml.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var asciidoctor = require('asciidoctor.js')();
-var opal = asciidoctor.Opal;
-var processor = asciidoctor.Asciidoctor(true);
-
-// Render Asciidoc to HTML (block)
-function asciidocToHTML(content) {
- var options = opal.hash2(['attributes'], {'attributes': 'showtitle'});
-
- var html = processor.$convert(content, options);
- return html;
-};
-
-// Render Asciidoc to HTML (inline)
-function asciidocToHTMLInline(content) {
- var options = Opal.hash({doctype: 'inline', attributes: ['showtitle']});
-
- var html = processor.$convert(content, options);
- return html;
-};
-
-module.exports = {
- block: asciidocToHTML,
- inline: asciidocToHTMLInline
-};