Angular Markdown Example with Vite

An Angular and Vite app that renders a Markdown blog, component syntax examples, and a live editor with Comark.
main.ts
import 'zone.js'
import { bootstrapApplication } from '@angular/platform-browser'
import { provideRouter, withHashLocation } from '@angular/router'
import { AppComponent } from './app/app.component'
import { routes } from './app/app.routes'

bootstrapApplication(AppComponent, {
  providers: [provideRouter(routes, withHashLocation())],
}).catch((err) => console.error(err))

This example renders a Markdown blog, component syntax examples, and a live editor in Angular with Vite. Pass a Markdown string to <comark-markdown [value]="content"> to parse and render in one step, or parse ahead of time with parseMarkdown() and pass the document to <comark-markdown-document>.

© 2026 Vercel, Inc.