8000 GitHub - phothinmg/lwe8-ascii: Converts AsciiDoc to HTML with Asciidoctor.js and extends some extensions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Converts AsciiDoc to HTML with Asciidoctor.js and extends some extensions.

License

Notifications You must be signed in to change notification settings

phothinmg/lwe8-ascii

Repository files navigation

Lwe8-ascii

1. Overview

Converts AsciiDoc to HTML with Asciidoctor.js and extends some extensions.

2. Install

npm i lwe8-ascii
pnpm i lwe8-ascii
yarn add lwe8-ascii

3. Use

3.1. CommonJs

var { convert } = require("lwe8-ascii");

3.2. ESM

import { convert } from "lwe8-ascii";
Example
const content = 'http://asciidoctor.org[*Asciidoctor*] ' +
  'running on https://opalrb.com[_Opal_] ' +
  'brings AsciiDoc to Node.js!'
// convert to html
const html = convert(content).html;
// write to a file
const fileName = "index.html"
convert(content).write(fileName)

4. API

  • This package exports function convert.

  • There is no default export.

5. License

About

Converts AsciiDoc to HTML with Asciidoctor.js and extends some extensions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0