Angular - Render Markdown With \n
I'm trying to render Markdown inside an Angular application. I was using ngx-markdown with Angular 5 and it was working fine. However, I had to upgrade to Angular 8 and since the
Solution 1:
\n
means a new line in javascript. Html has a different syntax. You can add this character in html using 

.
Note: you still need to use:ngPreserveWhitespaces
<markdownngPreserveWhitespaces >
# Title 
 ## Subtitle
</markdown>
https://stackblitz.com/edit/ngx-markdown-ps7x5j?file=src/app/app.component.html
Post a Comment for "Angular - Render Markdown With \n"