Angular
A minimal example showing how to use Comark with Angular and Vite.
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 demonstrates the simplest way to use Comark with Angular - use the ComarkComponent and pass it markdown content. The component handles parsing and rendering automatically.