npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

comark-github

v0.11.0

Published

GitHub's Markdown in Comark: alerts as shadcn-style callouts, @user and #123 references as links, and raw HTML limited to what GitHub allows.

Readme

comark-github

npm version npm downloads license docs

The parts of GitHub's Markdown that Comark doesn't render like GitHub: alerts as callouts, @user and #123 as links, and raw HTML limited to what GitHub allows. For HTML, Vue, React, and Svelte.

pnpm add comark comark-github
import { createHtmlRenderer } from "@comark/html";
import { callouts, components, html, references } from "comark-github/html";

const render = createHtmlRenderer({
  plugins: [callouts(), references({ repo: "onmax/comark-ui" }), html()],
  components,
});

Each plugin works alone, so register only the ones you want.

Callouts

callouts() draws GitHub's alerts, > [!NOTE] through > [!CAUTION], with an icon and a title. Text after the marker on its line replaces the title:

> [!WARNING] Breaking change in v2
> The `render` option moved.

callouts() replaces Comark's built-in alert plugin. A quote without a marker, or with another type, stays a quote. callouts({ titles: { note: "Nota" } }) changes the default titles.

References

references({ repo }) links @user to the profile, and #123 or owner/name#123 to the issue or pull request, as GitHub does in comments. Without repo, a bare #123 stays text. Links, code, emails, and npm scopes such as @comark/html stay as written.

HTML

html() renders raw HTML the way GitHub does. Tags such as <sub>, <sup>, <kbd>, <details>, and <picture> stay with GitHub's attributes, such as align, width, and open. script and style are removed with their content, and any other tag is replaced by its content. A URL must be relative, http, https, or (for links) mailto. Comark renders all raw HTML as written, so use this when people other than you write the Markdown. It replaces Comark's built-in html plugin. Components written as Markdown, such as ::callout, aren't touched; Comark's security plugin covers those.

Renderers

| Renderer | Import | | --- | --- | | @comark/html | comark-github/html: the styles are inlined | | @comark/vue | comark-github/vue | | @comark/react | comark-github/react | | @comark/svelte | comark-github/svelte |

Each entry exports the three parse plugins and the renderer's components, which draw the callouts. The Vue, React, and Svelte components add the styles when they mount; import comark-github/style.css with your styles so a server-rendered page doesn't shift.

Customize

The callout styles follow shadcn/ui's Alert: they read its CSS variables, such as --background, --border, --muted-foreground, and --destructive, when the page has them, and use its neutral theme otherwise. Set the shared --comark-* tokens to theme callouts with zoom, carousel, and annotate, or --cgc-note through --cgc-caution to recolor one type. The rules sit in a comark CSS layer, so any plain rule of your own wins; see the callouts' Theming page.

The icons are Lucide's, under its license (see LICENSE).

Docs and live demos: comark-ui.onmax.me/github.