1.2.4 • Published 7 years ago

kramdown-to-html-pipe v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Kramdown To HTML Pipe

Converts a Kramdown string, outputs HTML.

Usage

import {Component} from '@angular/core';
import {KramdownToHtmlPipe} from 'kramdown-to-html-pipe';

@Component({
  selector: 'example',
  template: `<div [innerHTML]="content|KramdownToHtml"></div>`,
  pipes: [KramdownToHtmlPipe]
})
export class ExampleComponent {
  protected content: string = 'This will render **Kramdown** content!';
}

Will be rendered as:

<div>
  <p>This will render <strong>Kramdown</strong> content!</p>
</div>

Installation

Run

npm install --save kramdown-to-html-pipe
1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago