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