Socket
Book a DemoInstallSign in
Socket

kramdown-to-html-pipe

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kramdown-to-html-pipe

Angular 2 Pipe that transforms a kramdown string to HTML. Forked from @conclurer/markdown-to-html-pipe

latest
Source
npmnpm
Version
1.2.4
Version published
Maintainers
1
Created
Source

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

Keywords

angular2

FAQs

Package last updated on 06 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts