<commit_before># HTML2MD: A JavaScript HTML-to-Markdown converter

HTML2MD attempts to convert HTML into Markdown by reducing an HTML document into simple, Markdown-compatible parts. This library is compatible with both browsers and Node.js.

HTML2MD does its best job to convert any HTML given to it and it is by no means perfect. Heavily formatted documents, for example, will likely fail to convert properly. A few assumptions are made about the HTML which outline it's limitations:

    * Inline elements do not contain block elements.
    * Standard HTML block elements are used to define and separate content.

## Install

Download the latest version from our [release page](https://github.com/BeneathTheInk/html2md/releases) and use via a script tag. The variable `html2md` will be attached to `window`.

```html
<script type="text/javascript" src="html2md.js"></script><commit_msg>fixed readme list<commit_after># HTML2MD: A JavaScript HTML-to-Markdown converter

HTML2MD attempts to convert HTML into Markdown by reducing an HTML document into simple, Markdown-compatible parts. This library is compatible with both browsers and Node.js.

HTML2MD does its best job to convert any HTML given to it and it is by no means perfect. Heavily formatted documents, for example, will likely fail to convert properly. A few assumptions are made about the HTML which outline it's limitations:

- Inline elements do not contain block elements.
- Standard HTML block elements are used to define and separate content.

## Install

Download the latest version from our [release page](https://github.com/BeneathTheInk/html2md/releases) and use via a script tag. The variable `html2md` will be attached to `window`.

```html
<script type="text/javascript" src="html2md.js"></script>
{'fraction_non_alphanumeric': 0.06426155580608793, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 4.7817589576547235, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6998433', 'n_tokens_mistral': 455, 'n_tokens_neox': 439, 'n_words': 237}