<commit_before># ![mdast](https://cdn.rawgit.com/wooorm/mdast/master/logo.svg)

[![Build Status](https://img.shields.io/travis/wooorm/mdast.svg?style=flat)](https://travis-ci.org/wooorm/mdast) [![Coverage Status](https://img.shields.io/coveralls/wooorm/mdast.svg?style=flat)](https://coveralls.io/r/wooorm/mdast?branch=master)

**mdast** is speedy Markdown parser (and stringifier) for multipurpose analysis (a syntax tree) in JavaScript. Node.JS and the browser. Lots of tests. 100% coverage.

## Installation

[npm](https://docs.npmjs.com/cli/install):

```bash
$ npm install mdast
```

[Component.js](https://github.com/componentjs/component):

```bash
$ component install wooorm/mdast
```

[Bower](http://bower.io/#install-packages):

```bash
$ bower install mdast
```

[Duo](http://duojs.org/#getting-started):

```javascript
var mdast = require('wooorm/mdast');
```

## Usage

See [Nodes](doc/Nodes.md) for information about returned objects.

```javascript
var mdast = require('mdast');

var ast = mdast.parse('Some *emphasis*,  **strongness**, and `code`.');
```
<commit_msg>Add UMD as an installation method in `Readme.md`<commit_after># ![mdast](https://cdn.rawgit.com/wooorm/mdast/master/logo.svg)

[![Build Status](https://img.shields.io/travis/wooorm/mdast.svg?style=flat)](https://travis-ci.org/wooorm/mdast) [![Coverage Status](https://img.shields.io/coveralls/wooorm/mdast.svg?style=flat)](https://coveralls.io/r/wooorm/mdast?branch=master)

**mdast** is speedy Markdown parser (and stringifier) for multipurpose analysis (a syntax tree) in JavaScript. Node.JS and the browser. Lots of tests. 100% coverage.

## Installation

[npm](https://docs.npmjs.com/cli/install):

```bash
$ npm install mdast
```

[Component.js](https://github.com/componentjs/component):

```bash
$ component install wooorm/mdast
```

[Bower](http://bower.io/#install-packages):

```bash
$ bower install mdast
```

[Duo](http://duojs.org/#getting-started):

```javascript
var mdast = require('wooorm/mdast');
```

UMD (globals/AMD/CommonJS) ([uncompressed](mdast.js) and [minified](mdast.min.js):

```html
<script src="path/to/mdast.js"></script>
<script>
    var ast = mdast.parse('*hello* __world__');
    mdast.stringify(ast); // _hello_ **world**
</script>
```

## Usage

See [Nodes](doc/Nodes.md) for information about returned objects.

```javascript
var mdast = require('mdast');

var ast = mdast.parse('Some *emphasis*,  **strongness**, and `code`.');
```

{'fraction_non_alphanumeric': 0.19853240929474114, 'fraction_numerical': 0.0024459845087647777, 'mean_word_length': 5.244274809160306, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5464309', 'n_tokens_mistral': 936, 'n_tokens_neox': 871, 'n_words': 164}