← Back to all posts

Hello World

comarknextjs

Welcome to this blog powered by Comark and Next.js!

Comark extends standard Markdown with component syntax, and it integrates seamlessly with Next.js's server-first architecture.

Why Comark + Next.js?

  • Server-rendered — Comark parses and renders on the server via parseMarkdown() and MarkdownDocument
  • Static generation — Full SSG with generateStaticParams for zero-latency delivery
  • Component syntax — Embed custom components directly in your Markdown
TS
import { parseMarkdown } from 'comark'
import { MarkdownDocument } from '@comark/react'

const tree = await parseMarkdown(markdown)
// <MarkdownDocument value={tree} components={{ Alert }} />