mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-03 10:13:47 +10:00
fix(pdf): honor soft hyphens for every hyphenated language
Forme hyphenates every language it has patterns for, so drop the German-only gate on soft-hyphen decoding and the "Currently supports German" schema note.
This commit is contained in:
@@ -98,7 +98,7 @@ export const RichText = ({ children, semanticField }: RichTextProps) => {
|
||||
|
||||
const normalizedHtml = normalizeRichTextHtml(children, {
|
||||
direction: rtl ? "rtl" : "ltr",
|
||||
softHyphens: metadata.typography.hyphenation === true && /^de(?:-|$)/i.test(metadata.page.locale),
|
||||
softHyphens: metadata.typography.hyphenation === true,
|
||||
});
|
||||
const html = richTextNodeKey
|
||||
? projectNormalizedRichTextHtml(normalizedHtml, richTextNodeKey, renderedChildKeysFor)
|
||||
|
||||
@@ -598,9 +598,7 @@ export const typographySchema = z.object({
|
||||
hyphenation: z
|
||||
.boolean()
|
||||
.optional()
|
||||
.describe(
|
||||
"Enable automatic PDF hyphenation using the resume language. Currently supports German. Defaults to false.",
|
||||
),
|
||||
.describe("Enable automatic PDF hyphenation using the resume language. Defaults to false."),
|
||||
});
|
||||
|
||||
const styleSlotSchema = z.enum([
|
||||
|
||||
Reference in New Issue
Block a user