asciidoctorjs-web-repack v1.5.5-5-1
This is a repackage of the asciidoctor.js bower project
Dan Allen https://github.com/mojavelinux[@mojavelinux]; Guillaume Grossetie https://github.com/mogztter[@mogztter]; Anthonny Quérouil https://github.com/anthonny[@anthonny] :idprefix: :idseparator: - :uri-nodejs: http://nodejs.org :uri-opal: http://opalrb.org :uri-repo: https://github.com/asciidoctor/asciidoctor.js :uri-freesoftware: https://www.gnu.org/philosophy/free-sw.html :uri-rel-file-base: link: :uri-contribute: {uri-rel-file-base}CONTRIBUTING.adoc :uri-user-manual: {uri-rel-file-base}manual.adoc :license: {uri-repo}/blob/master/LICENSE :experimental: :endash:
Please see https://github.com/asciidoctor/asciidoctor.js[^]
I just host and maintain this repackaging, all rights and development credit goes to the original authors.
Use
$ npm install --save asciidoctorjs-web-repack
For HTML
<script src="node_modules/asciidoctorjs-web-repack/asciidoctor-all.min.js"></script>
<!-- If you need docbook backends -->
<script src="node_modules/asciidoctorjs-web-repack/asciidoctor-docbook.min.js"></script>
For Typescript projects:
import 'asciidoctorjs-web-repack/asciidoctor-all.min';
let Opal:any = window['Opal'] // prevent declaration error.
var content = "http://asciidoctor.org[*Asciidoctor*] " +
"running on http://opalrb.org[_Opal_] " +
"brings AsciiDoc to the browser!";
var options = Opal.hash({doctype: 'inline', attributes: ['showtitle']});
var html = Opal.Asciidoctor.$convert(content, options); // <1>
console.log(html); // <2>
Copyright
Copyright (C) 2016 Dan Allen, Guillaume Grossetie, Anthonny Quérouil and the Asciidoctor Project. Free use of this software is granted under the terms of the MIT License.
See the {LICENSE}LICENSE file for details.