blogs/src/lib/typography.ts
Neeldhara Misra 632543db4d
Some checks are pending
Build / build (push) Waiting to run
Fix local images and em dash rendering
2026-06-25 05:21:34 +05:30

5 lines
159 B
TypeScript

const EM_DASH_PATTERN = /---/g;
export function typographicText(value: string | null | undefined) {
return (value ?? "").replace(EM_DASH_PATTERN, "—");
}