This commit is contained in:
parent
4b3aa3022e
commit
632543db4d
55 changed files with 432 additions and 117 deletions
5
src/lib/typography.ts
Normal file
5
src/lib/typography.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const EM_DASH_PATTERN = /---/g;
|
||||
|
||||
export function typographicText(value: string | null | undefined) {
|
||||
return (value ?? "").replace(EM_DASH_PATTERN, "—");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue