Rendering code cleanly in articles

A short sample article that verifies Markdown code fences and syntax highlighting in 11ty.

Articles can include normal Markdown content and code. Highlighting runs at build time, not in the browser.

export function total(items) {
  return items.reduce((sum, item) => sum + item.amount, 0);
}

Shell examples remain readable too.

npm run build
npm run dev

Diff examples are prepared as well.

+export const status = "published";
-export const status = "draft";

Discuss a project

Send us the project goal, current state, and main bottleneck. We will respond with a clear assessment.

office@sftwrk.at
Phone
+43 699 172 948 71
Address
Stefan-Fadinger-Straße 20, 4600 Wels, Österreich