Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ggranum/asciidoctorjs-web-repack

Web-only repackaging of the asciidoctor.js project.
https://github.com/ggranum/asciidoctorjs-web-repack

Last synced: about 2 months ago
JSON representation

Web-only repackaging of the asciidoctor.js project.

Awesome Lists containing this project

README

        

# This is a repackage of the asciidoctor.js bower project
Dan Allen ; Guillaume Grossetie ; Anthonny Quérouil
: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
```html



```

For Typescript projects:

```js
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.