Project: angular
Task (challenging): 1) Enable Markdown text input for blog details. Preview the Markdown in blog.component.ts. 2) Develop a pipe or service to reuse Markdown-related logic. 3) Prevent XSS attacks using Angular's DomSanitizer. 4) Constraint: DO NOT use any third-party packages; ONLY Angular APIs are permitted.