Welcome to the Blog

YuniTeam
and Team

Hello#

This is the first real post. If you can read this in the browser, the markdown pipeline works on Cloudflare Workers.

Buttons and badges#

Plain markdown still works for bold, italic, lists, code blocks, etc.

You can drop shadcn primitives anywhere:

Newv1.0Beta

Card layout inside the article#

Card with mixed markdown + JSX
The card itself is a React component; the body below is still markdown.

Cards are useful for highlighting a feature or a call-out without breaking the article flow.

Accordion for inline FAQ#

Callout variants#

Five semantic colors for different message types:

Heads up

Info callout — use for neutral context the reader should be aware of.

Pro tip

Tip callout — short actionable advice that improves the reader's outcome.

Caution

Warning callout — something could go wrong if ignored.

Worked

Success callout — confirm an outcome the reader is looking for.

Stop

Danger callout — destructive or irreversible action ahead.

Tabs inside an article#

bash
bun add safe-mdx @content-collections/core

Reddit embed#

Embed external content#

YouTube videos:

Tweets from X:

And images with captions:

Circuit board macro
Image embedded via the <Image /> component with a caption.

Code blocks too#

Inline code works with backticks. Fenced blocks support language tags:

src/lib/recent-posts.ts
import { allBlogPosts } from "content-collections";

const recent = allBlogPosts
  .filter((p) => p.locale === "en" && !p.draft)
  .sort((a, b) => b.publishedAt.localeCompare(a.publishedAt))
  .slice(0, 5);

console.log(`Latest ${recent.length} posts`);
deploy.sh
# Deploy to Cloudflare Workers
pnpm build
pnpm run deploy

LinkCard for see-also#

Related

Our Product vs Competitor Example

A side-by-side comparison page with embedded PricingTable.

External

See the source on GitHub

External link example — opens in a new tab with rel=noopener.

CodeTabs — multi-language switcher#

server.ts
import { Resend } from "resend";
const resend = new Resend(process.env.RESEND_API_KEY);
await resend.emails.send({
  from: "hi@example.com",
  to: "you@example.com",
  subject: "Hi",
  html: "<p>Hello from TS</p>",
});

Subscribe to product updates#

Get product updates

New features, deep dives, occasional tips. No spam, unsubscribe anytime.

Footnotes work too#

Markdown footnotes follow the GFM spec [1] and render at the end of the article as a numbered list [2].

[1]

GitHub Flavored Markdown — see the spec.

[2]

safe-mdx walks the mdast tree directly, so any node type that remark-gfm produces survives the render path.

What's next#

  • More posts

  • Real comparisons under /vs

  • Use-case walkthroughs under /use-cases

Tagged#meta

Was this helpful?

Acknowledgments

@torvalds@rich-harrisAnonymous contributor