<commit_before># ng-showdown

Angular integration for [Showdown](https://github.com/showdownjs/showdown)

## How to use it

1. Install it

  a. via bower:
  ```
  bower install --save ng-showdown
  ```
  b. via npm
  ```
  npm install --save ng-showdown
  ```
2. Include `'ng-showdown'` in your module dependencies
3. Use it
  ```
  <p markdown-to-html="vm.mymarkdown"></p>
  ```
  
## API

#### `$showdown`

`$showdown.makeHtml(markdown)` - Converts a markdown text into HTML

Input: *string* - markdown to be parsed

Output: *string* - html output from showdown

`$showdown.stripHtml` - Strips a text of it's HTML tags. See http://stackoverflow.com/questions/17289448/angularjs-to-output-plain-text-instead-of-html

Input: *string* - html to be striped

Output: *string* - string without `<html>` tags

#### `markdownToHtml` directive

Example usage:
```<commit_msg>Another Typo 'striped' -> 'stripped'<commit_after># ng-showdown

Angular integration for [Showdown](https://github.com/showdownjs/showdown)

## How to use it

1. Install it

  a. via bower:
  ```
  bower install --save ng-showdown
  ```
  b. via npm
  ```
  npm install --save ng-showdown
  ```
2. Include `'ng-showdown'` in your module dependencies
3. Use it
  ```
  <p markdown-to-html="vm.mymarkdown"></p>
  ```
  
## API

#### `$showdown`

`$showdown.makeHtml(markdown)` - Converts a markdown text into HTML

Input: *string* - markdown to be parsed

Output: *string* - html output from showdown

`$showdown.stripHtml` - Strips a text of it's HTML tags. See http://stackoverflow.com/questions/17289448/angularjs-to-output-plain-text-instead-of-html

Input: *string* - html to be stripped

Output: *string* - string without `<html>` tags

#### `markdownToHtml` directive

Example usage:
```
{'fraction_non_alphanumeric': 0.15113636363636362, 'fraction_numerical': 0.0125, 'mean_word_length': 3.7085561497326203, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '6376769', 'n_tokens_mistral': 646, 'n_tokens_neox': 608, 'n_words': 175}