Skip to content

anthonny/asciidoctorjs-npm-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asciidoctorjs-npm-wrapper

A wrapper to use Asciidoctor.js with NPM

Asciidoctor.js current version : 1.5.0-preview.7*

Installation

npm install asciidoctorjs-npm-wrapper --save

Usage

var asciidoctor = require('asciidoctorjs-npm-wrapper').Asciidoctor;

// You can also get Opal instance
var opal = require('asciidoctorjs-npm-wrapper').Opal;

console.log(asciidoctor.$convert('== Test', null));

/*
<div class="sect1">
<h2 id="_test">Test/h2>
<div class="sectionbody">

</div>
</div>
*/

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published