diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:31:22 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:31:22 +0100 |
commit | eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c (patch) | |
tree | e2347c9e8c58dd3c2681a6028b5f8d69c40d4e04 /packages/gitbook-asciidoc/lib/toHTML.js | |
parent | 1c1e58b8641cac34b5f3d7c05951f507557fcb1a (diff) | |
download | gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.zip gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.tar.gz gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.tar.bz2 |
Import gitbook-asciidoc
Diffstat (limited to 'packages/gitbook-asciidoc/lib/toHTML.js')
-rw-r--r-- | packages/gitbook-asciidoc/lib/toHTML.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/packages/gitbook-asciidoc/lib/toHTML.js b/packages/gitbook-asciidoc/lib/toHTML.js deleted file mode 100644 index 504a20d..0000000 --- a/packages/gitbook-asciidoc/lib/toHTML.js +++ /dev/null @@ -1,16 +0,0 @@ -var asciidoctor = require('asciidoctor.js')(); - -// Render Asciidoc to HTML (block) -function asciidocToHTML(content) { - return asciidoctor.convert(content, {'attributes': 'showtitle'}); -}; - -// Render Asciidoc to HTML (inline) -function asciidocToHTMLInline(content) { - return asciidoctor.convert(content, {doctype: 'inline', attributes: 'showtitle'}); -}; - -module.exports = { - block: asciidocToHTML, - inline: asciidocToHTMLInline -}; |