Angular Pipe that transforms a markdown string to HTML
npm install markdown-to-html-pipeConverts a Markdown string, outputs HTML.
``typescript
// example.module.ts
import {NgModule} from '@angular/core';
import {MarkdownToHtmlModule} from 'markdown-to-html-pipe';
import {ExampleComponent} from './example.component';
@NgModule({
imports: [MarkdownToHtmlModule],
declarations: [ExampleComponent]
})
export class ExampleModule {}
`
`typescript
// example.component.ts
import {Component} from '@angular/core';
@Component({
selector: 'example',
template:
})
export class ExampleComponent {
protected content: string = 'This will render Markdown content!';
}
`Will be rendered as:
`html
This will render Markdown content!
`Installation
Run
`
npm install --save markdown-to-html-pipe
``