components / prose

prose.

markdown renderer with the justin06lee.dev prose styling — GFM, KaTeX math, heading slugs, and copy-on-hover code blocks. dark-only. pass markdown as the string child.

heading

prose renders markdown with the justin06lee.dev styling — links, lists, and inline code.

  • gfm tables and lists
  • math via katex: eiπ+1=0e^{i\pi} + 1 = 0
const cn = (...x: string[]) => x.join(" ");

blockquotes, too.

installation
bunx @justin06lee/chrome@latest add prose
usage
Render markdown

title

some markdown with code and a link.

  • list item
  • another
<Prose>{`# title
some **markdown** with \`code\`.`}</Prose>
Code block + math
const x = 1;

inline math: a2+b2=c2a^2 + b^2 = c^2

<Prose>{md}</Prose>