-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typography: Allow overriding replacements #2598
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I still need this. |
Hey @Haraldson! I'll take it into our list of features planned for the future. Thanks for your request. |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
What problem are you facing?
In order to support multiple languages and their individual typographic rules, it would be nice to be able to override replacements. Straight double quotes (
"
) to curly double quotes (“
) makes sense in English, but in Norwegian I would prefer the straight opening quote to turn into double angle quotes («
) instead.What’s the solution you would like to see?
I tried reading available documentation, then look through the source code, and discovered an existing prop/option named
replaceWith
. It would be nice if that prop could be sent in usingTypography.configure()
somehow. Below is a couple of ways this could be achieved:What alternatives did you consider?
I guess I could roll my own extension, but I’d much prefer a Typography extension to be language-aware, since typography is tied to languages and not a global standard.
Anything to add? (optional)
No response
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: