open-index/open-npm huggingface dataset:
npm package: @koara/html
Description: Koara to Html parser written in Javascript
Author: Andy Van Den Heuvel
Latest version: 0.15.1

[![Koara](http://www.codeaddslife.com/koara.png)](http://www.koara.io)

[![Build Status](https://img.shields.io/travis/koara/koara-js-html.svg)](https://travis-ci.org/koara/koara-js-html)
[![Coverage Status](https://img.shields.io/coveralls/koara/koara-js-html.svg)](https://coveralls.io/github/koara/koara-js-html?branch=master)
[![Latest Version](https://img.shields.io/npm/v/%40koara%2Fhtml.svg?maxAge=2592000)]()
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/koara/koara-js-html/blob/master/LICENSE)

# Koara-js-html
[Koara](http://www.koara.io) is a modular lightweight markup language. This project can render the koara AST to Html in Javascript.  
The AST is created by the [core koara parser](https://github.com/koara/koara-js).

## Getting started
- Download [ZIP file](https://github.com/koara/koara-js-html/archive/0.15.0.zip)
- Npm

  ```bash
  npm install @koara/koara-html --save-dev
  ```
  
- Bower

  ```xml
  bower install koara-html
  ```

## Usage
- Node

  ```js
  var koara = require('@koara/koara');
  var koaraHtml = require('@koara/html');

  var parser = new koara.Parser();
  var result = parser.parse("Hello World!");
  var renderer = new koaraHtml.Html5Renderer();
  result.accept(renderer);
  console.log(renderer.getOutput());
  ```
  
- Browser
  
  ```js
  <!doctype html>
  <html>
    <body>
      <script type="text/javascript" src="koara.min.js"></script>
      <script type="text/javascript" src="koara-html.min.js"></script>
      <script type="text/javascript">
        var parser = new koara.Parser();
        var result = parser.parse("Hello World!");
        var renderer = new koaraHtml.Html5Renderer();
        result.accept(renderer);
        document.write(renderer.getOutput());
      </script>
    </body>
  </html>
  ```

## Configuration
You can configure the Renderer:
-  **renderer.hardWrap**  
   Default:	`false`
   
   Specify if newlines should be hard-wrapped (return-based linebreaks) by default.

-  **renderer.partial**  
   Default:	`true`
   
   When false, the output will be wrapped with a `<html>` and `<body>` tag to make a complete Html document.
npm package: @koara/koara
Description: Koara parser written in Javascript
Author: Andy Van Den Heuvel
Latest version: 0.15.1

[![Koara](https://www.codeaddslife.com/koara.png)](https://www.codeaddslife.com/koara)

[![Build Status](https://img.shields.io/travis/koara/koara-js.svg)](https://travis-ci.org/koara/koara-js)
[![Coverage Status](https://img.shields.io/coveralls/koara/koara-js.svg)](https://coveralls.io/github/koara/koara-js?branch=master)
[![Npm](https://img.shields.io/npm/v/%40koara%2Fkoara.svg?maxAge=2592000)]()
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/koara/koara-js/blob/master/LICENSE)

# Koara-js
[Koara](https://www.codeaddslife.com/koara) is a modular lightweight markup language. This project is the core koara parser written in Javascript.  
If you are interested in converting koara to a specific outputFormat, please look the [Related Projects](#related-projects) section.

## Getting started
- Download [ZIP file](https://github.com/koara/koara-js/archive/0.15.0.zip)
- Npm

  ```bash
  npm install @koara/koara --save-dev
  ```
  
- Bower

  ```xml
  bower install koara
  ```

## Usage
- Node

  ```js
  var koara = require('@koara/koara');
  var parser = new koara.Parser();
  var result1 = parser.parse("Hello World!"); // parse a string
  ```

- Browser

  ```js
  <!doctype html>
  <html>
    <body>
      <script type="text/javascript" src="koara.min.js"></script>
      <script type="text/javascript">
        var parser = new koara.Parser();
        var result1 = parser.parse("Hello World!"); // parse a string
      </script>
    </body>
  </html>
  ```

## Configuration
You can configure the Parser:

-  **parser.modules**  
   Default:	`["paragraphs", "headings", "lists", "links", "images", "formatting", "blockquotes", "code"]`
   
   Specify which parts of the syntax are allowed to be parsed. The rest will render as plain text.

## Related Projects

- [koara / koara-js-html](http://www.github.com/koara/koara-js-html): Koara to Html renderer written in Javascript
- [koara / koara-js-xml](http://www.github.com/koara/koara-js-html): Koara to Xml renderer written in Javascript