- tap(channel => this.channel = channel),
- switchMap(() => from(this.markdown.textMarkdownToHTML(this.channel.description))),
- tap(html => this.descriptionHTML = html),
+ tap(channel => {
+ this.channel = channel
+ }),
+ switchMap(() => from(this.markdown.textMarkdownToHTML({
+ markdown: this.channel.description,
+ withEmoji: true,
+ withHtml: true
+ }))),
+ tap(html => {
+ this.descriptionHTML = html
+ }),