mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-04 02:33: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)
|
||||
|
||||
Reference in New Issue
Block a user