blob: 80cbb8908a921ea40203d7d24ce59d0cd82c3f17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var asciidoctor = require('asciidoctor.js')();
var opal = asciidoctor.Opal;
var processor = asciidoctor.Asciidoctor(true);
function asciidocToHTML(content) {
var options = opal.hash2(['attributes'], {'attributes': 'showtitle'});
var html = processor.$convert(content, options);
return html;
};
module.exports = asciidocToHTML;
|