import { Pipe , PipeTransform } from '@angular/core' ; declare const marked ; @ Pipe ( { name : 'removeMd' } ) export class RemoveMarkdownPipe implements PipeTransform { transform ( value , args ) { if ( ! value ) return value ; return marked ( value ) . replace ( /[<][^>]*[>]/gi , '' ) ; } }