# ang-mark-down-editor

> MarkDown Edior for Angular 2+

Latest version **0.0.7** (published 2019-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ang-mark-down-editor
pnpm add ang-mark-down-editor
yarn add ang-mark-down-editor
bun add ang-mark-down-editor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2019-07-19 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 304.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vishal Hasnani |
| Maintainers | hasnanivishal |
| Keywords | angular, javascript, typescript, markdown editor, markdown-editor, angular 6, editor, markdown, angular 7, angular 8 |

## Links

- npm: https://www.npmjs.com/package/ang-mark-down-editor
- Repository: https://github.com/Hasnanivishal/angular-markdown-editor
- Issues: https://github.com/Hasnanivishal/angular-markdown-editor/issues
- npm.io page: https://npm.io/package/ang-mark-down-editor

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2019-07-19
- 0.0.6 — 2019-07-18
- 0.0.5 — 2019-07-18
- 0.0.4 — 2019-07-18
- 0.0.3 — 2019-07-18
- 0.0.2 — 2019-07-18
- 0.0.1 — 2019-07-18

## README

# Angular MarkDown Editor

<p align="center">
  <a href="https://www.npmjs.com/package/ang-mark-down-editor">
    <img src="https://img.shields.io/npm/dm/ang-mark-down-editor.svg?style=flat" alt="downloads">
  </a>
 
  <a href="https://badge.fury.io/for/js/ang-mark-down-editor">
    <img src="https://badge.fury.io/js/ang-mark-down-editor.svg" alt="npm version" height="18">
  </a>
</p>

* A directive for MarkDown which can be used with text area to make text area compatible for mark down support.
* It is developed using `Angular >=7.1.0` and its newly introduced `ng g library` schematics.
* Library location: `projects/angular-mark-down-editor` directory of this repository.


## Examples/Demo

* Live Demo [Example](https://stackblitz.com/edit/angular-ksq5mm)

![angular-mark-down-editor](https://i.stack.imgur.com/lKnSi.png)

## Installation

`npm i ang-mark-down-editor`

## API

`import { AngularMarkDownEditorModule } from 'ang-mark-down-editor';`<br>
`directive: MarkDownEditor`

### @Inputs()

| Input             | Type    | Required                  | Description                      |
| ------------------| ------- | --------------------------| ---------------------------------|
| appMarkDownEditor | boolean | Optional, default: true   | use false to hide preview pannel |

### @Output()

| Output           | Type                   | Required  | Description                                                 |
| ---------------- | -----------------------| ----------| ------------------------------------------------------------|
| valueChange      | EventEmitter<object>() | Optional  | returns event object 'event: { markDown: any; html: any; }' |


## Usage

 ```typescript

    // Module File
    import { AngularMarkDownEditorModule } from 'ang-mark-down-editor'

    @NgModule({ 
        imports: [AngularMarkDownEditorModule]
    })

    // Component File
    import { Component } from '@angular/core';

    @Component({
      selector: 'my-app',
      template: `<textarea appMarkDownEditor (valueChange)="onValueChange($event)"></textarea>` // [appMarkDownEditor]='false' In case of hide preview
    })
    export class AppComponent  {

       onValueChange(event: { markDown: any; html: any; }) {
        console.log(event.markDown); // this will print markdown which user entered
        console.log(event.html); // this will print html output for the markdown
      }
    }

  ```
  
## License

[MIT](https://tldrlegal.com/license/mit-license) © [Vishal Hasnani](https://github.com/Hasnanivishal)


**Thanks for Installing**

> Conatct me for any suggestion/issues -> hasnanivishal@gmail.com

---
_Source: https://npm.io/package/ang-mark-down-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
