Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ggranum/asciidoctorjs-web-repack
- Owner: ggranum
- License: mit
- Created: 2016-09-02T09:51:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-02T11:07:55.000Z (over 8 years ago)
- Last Synced: 2024-11-16T15:08:47.430Z (2 months ago)
- Language: JavaScript
- Size: 468 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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.