maraca-render
TypeScript icon, indicating that this package has built-in type declarations

0.7.3 • Public • Published

Maraca-Render for JavaScript / web

The Maraca-Render library for JavaScript / web. Use this to render Maraca output as dynamic HTML.

Install

yarn add maraca-render

or

npm install maraca-render --save

Maraca-Render documentation

Full documentation for working with Maraca data as HTML (via Maraca-Render) can be found at https://maraca-lang.org/app.

Basic Usage

import maraca from 'maraca';
import render from 'maraca-render';

const source = "[style: ['font-weight': bold], Hello World]";

maraca(source, render(document.getElementById('root')));

API

The core API takes a node, and creates a function which can be passed into Maraca, to render the output as HTML inside the provided root node.

render = (node) => ((data) => void);

Readme

Keywords

none

Package Sidebar

Install

npm i maraca-render

Weekly Downloads

1

Version

0.7.3

License

MIT

Unpacked Size

55.6 kB

Total Files

27

Last publish

Collaborators

  • jsiwhitehead