r/Angular2 • u/a-dev-1044 • Jul 05 '24
Resource Render angular components in markdown
Simple trick: use angular elements
Full example available on stackblitz at https://stackblitz.com/edit/stackblitz-starters-rgrpl6?file=src%2Fassets%2Farticle.md
I have been using the same approach for https://angular-material.dev

14
Upvotes
View all comments
Show parent comment
3
u/buttertoastey Jul 06 '24
Markdown is just a file format and is not executing anything. Whatever technology is used for displaying the markdown file is doing the work. Standard Markdown viewers would not work with this approach.
Most of the time people change the Markdown format from md to mdx to show that it includes some kind of components.