1.0.0 • Published 5 years ago

@asciidoctor/manpage-converter v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Man(ual) page converter for Asciidoctor.js

Travis build status npm version

Install

$ npm i @asciidoctor/core @asciidoctor/manpage-converter

Usage

var asciidoctor = require('@asciidoctor/core')()
require('@asciidoctor/manpage-converter')()

const options = {
  attributes: { backend: 'manpage', doctype: 'book' },
  standalone: true
}

const content = `= Manual page
:doctitle: Awesome Asciidoctor
:docdate: 2019-01-01

== First section

Once upon a time...`

const manpage = asciidoctor.convert(content, options)
//console.log(manpage)