<commit_before>     __      __               ___                      __     
    /\ \    /\ \__           /\_ \                    /\ \    
    \ \ \___\ \ ,_\   ___ ___\//\ \        ___ ___    \_\ \   
     \ \  _ `\ \ \/ /' __` __`\\ \ \     /' __` __`\  /'_` \  
      \ \ \ \ \ \ \_/\ \/\ \/\ \\_\ \_ __/\ \/\ \/\ \/\ \L\ \ 
       \ \_\ \_\ \__\ \_\ \_\ \_\\____\\_\ \_\ \_\ \_\ \___,_\
        \/_/\/_/\/__/\/_/\/_/\/_//____//_/\/_/\/_/\/_/\/__,_ /

[html.md][] is a pure JavaScript library for converting [HTML][] in to valid [Markdown][].

[![Build Status](https://secure.travis-ci.org/neocotic/html.md.png)](http://travis-ci.org/neocotic/html.md)

[html.md][] can be used normally in any browser as well as in the [node.js][] environment where it
also provides a command line interface.

* [Install](#install)
* [Examples](#examples)
* [Usage](#usage)
* [API](#api)
   * [md](#mdhtml-options)
   * [Miscellaneous](#miscellaneous)
* [Windows](#windows)
* [Bugs](#bugs)
* [Questions](#questions)

## Install

Install using the package manager for your desired environment(s):

``` bash
# for node.js:
$ npm install html-md
# OR; for the browser:
$ bower install html-md
```

## Examples

In the browser:

``` html
<html>
  <head>
    <script src="/path/to/md.min.js"></script>
    <script>
      (function () {
        var body = document.getElementsByTagName('body')[0];
        console.log(md(body));
      }());
    </script>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>My tasks for today:</p>
    <ul>
      <li>Learn all about <a href="http://neocotic.com/html.md">html.md</a></li>
      <li>Tell everyone how <strong>awesome</strong> it is!</li>
    </ul>
  </body>
</html>
```

In [node.js][]:

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

console.log(md('I <em>love</em> html.md!'));<commit_msg>fixed non-functional node.js example in readme<commit_after>     __      __               ___                      __     
    /\ \    /\ \__           /\_ \                    /\ \    
    \ \ \___\ \ ,_\   ___ ___\//\ \        ___ ___    \_\ \   
     \ \  _ `\ \ \/ /' __` __`\\ \ \     /' __` __`\  /'_` \  
      \ \ \ \ \ \ \_/\ \/\ \/\ \\_\ \_ __/\ \/\ \/\ \/\ \L\ \ 
       \ \_\ \_\ \__\ \_\ \_\ \_\\____\\_\ \_\ \_\ \_\ \___,_\
        \/_/\/_/\/__/\/_/\/_/\/_//____//_/\/_/\/_/\/_/\/__,_ /

[html.md][] is a pure JavaScript library for converting [HTML][] in to valid [Markdown][].

[![Build Status](https://secure.travis-ci.org/neocotic/html.md.png)](http://travis-ci.org/neocotic/html.md)

[html.md][] can be used normally in any browser as well as in the [node.js][] environment where it
also provides a command line interface.

* [Install](#install)
* [Examples](#examples)
* [Usage](#usage)
* [API](#api)
   * [md](#mdhtml-options)
   * [Miscellaneous](#miscellaneous)
* [Windows](#windows)
* [Bugs](#bugs)
* [Questions](#questions)

## Install

Install using the package manager for your desired environment(s):

``` bash
# for node.js:
$ npm install html-md
# OR; for the browser:
$ bower install html-md
```

## Examples

In the browser:

``` html
<html>
  <head>
    <script src="/path/to/md.min.js"></script>
    <script>
      (function () {
        var body = document.getElementsByTagName('body')[0];
        console.log(md(body));
      }());
    </script>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>My tasks for today:</p>
    <ul>
      <li>Learn all about <a href="http://neocotic.com/html.md">html.md</a></li>
      <li>Tell everyone how <strong>awesome</strong> it is!</li>
    </ul>
  </body>
</html>
```

In [node.js][]:

``` javascript
var md = require('html-md');

console.log(md('I <em>love</em> html.md!'));
{'fraction_non_alphanumeric': 0.23037077426390404, 'fraction_numerical': 0.0016357688113413304, 'mean_word_length': 1.8552529182879378, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '841833', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1332, 'n_words': 244}