🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@comark/angular

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comark/angular

Angular renderer for Comark. Render Markdown with components at runtime, with streaming support for AI output.

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
11
-85.14%
Maintainers
2
Weekly downloads
 
Created
Source
Comark banner

@comark/angular

npm version npm downloads CI Documentation license

Angular renderer for Comark. Render markdown with custom standalone components, streaming support, and SSR.

Features

  • 🧩 <comark> component for one-shot markdown rendering
  • 🎯 Map any Comark tag to a custom Angular component
  • 🌊 Streaming-friendly with auto-close and caret support
  • 🖥️ SSR-safe with Angular 17+ standalone components
  • 🔌 Plugin ecosystem (math, mermaid, highlight, binding…)
  • 🎯 Full TypeScript support

Installation

npm install @comark/angular
# or
pnpm add @comark/angular

Usage

import { Component } from '@angular/core'
import { ComarkComponent } from '@comark/angular'
import math, { Math } from '@comark/angular/plugins/math'

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ComarkComponent],
  template: `<comark [markdown]="content" [components]="{ Math }" [plugins]="[math()]" />`,
})
export class AppComponent {
  content = `# Hello\n\nThis is **Comark** in Angular.`
}

Custom components

import { Component } from '@angular/core'
import { ComarkComponent } from '@comark/angular'
import { AlertComponent } from './alert.component'

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ComarkComponent],
  template: `<comark [markdown]="content" [components]="{ alert: AlertComponent }" />`,
})
export class AppComponent {
  content = `
::alert{type="warning"}
Heads up!
::
`
}

Streaming

<comark [markdown]="content" [streaming]="isStreaming" caret />

Documentation

Full guide and API reference at comark.dev/rendering/angular.

License

Made with ❤️

Published under MIT License.

Keywords

ai

FAQs

Package last updated on 14 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts