0.1.0 • Published 5 years ago

react-asciidoc v0.1.0

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

react-asciidoc

React wrapper around Asciidoctor.js

NPM registry NPM license

Demo

Here is an examples page

Install

# Yarn
yarn add react-asciidoc

# NPM
npm install --save react-asciidoc

Usage

import React from 'react';
import Asciidoc from 'react-asciidoc';
import 'react-asciidoc/style.css'; // base Asciidoc style

const DemoComponent = () => <Asciidoc>*Asciidoc* content here...</Asciidoc>;

Styling

Use can use custom CSS. More info here...

API

Props

PropertyTypeRequired?Description
childrenStringAsciidoc content as string
styleObjectOptional inline style to attach to outermost element.
classNameStringOptional CSS className to attach to outermost element.
outerTagNamestringTag name passed to document.createElement to create the outer container element. This is an advanced property; in most cases, the default ("div") should be used.

License

MIT © avin