[HOLD for payment 2021-12-15] Markdown with italic inside bold is visually different from bold inside italic - Reported by: Kürşat Yiğitoğlu
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- In a conversation, send these 2 messages
*_bold-italic_*
_*italic-bold*_
Expected Result:
Both messages should have the same style
Actual Result:
Messages don't have the same style. The italic-bold message seems to be using a different font-family.
Workaround:
No need for workaround.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.1.16-9
Reproducible in staging?: Yes Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: Kürşat Yiğitoğlu Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1637796876484200
Triggered auto assignment to @tylerkaraszewski (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Hey @isagoico, my user name is kursat on github.
Triggered auto assignment to @kevinksullivan (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Sounds like an external issue to me.
Interesting. @Expensify/design is there somewhere I should bring this conversation to ensure we pick the right format of the two before explorting?
PROPOSAL
- Problem:
This problem is occurring because in code em and strong styles in webViewStyles have different fontFamily values.
https://github.com/Expensify/App/blob/c2b96c1042e8055bf8e6c689b5a358245184b5d4/src/styles/styles.js#L55-L58
https://github.com/Expensify/App/blob/c2b96c1042e8055bf8e6c689b5a358245184b5d4/src/styles/styles.js#L65-L68
And when user writes *_bold-italic_* or _*italic-bold*_ both messages text will have fontWeight: "bold" and fontStyle: "italic", but they will have different fontFamily values.
- Solution:
We can propose you to change fontFamily of em and strong from fontFamily: fontFamily.GTA_BOLD , fontFamily: fontFamily.GTA_ITALIC to fontFamily: fontFamily.GTA, and text will be displayed correctly:
Output for:
*_bold-italic_*
_*italic-bold*_
*bold*
_italic_
simple
I agree with @developvsn's analysis above.
@developvsn want to apply for the job and I'll hire you?
https://www.upwork.com/jobs/~018e7f01a0324f9914
Triggered auto assignment to @parasharrajat (Exported)
Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Based on Shawn's comment https://github.com/Expensify/App/issues/6489#issuecomment-983812521, @developvsn's proposal looks good. But make sure to test your change on all platforms and remove extra font dependency.
@developvsn want to apply for the job and I'll hire you?
https://www.upwork.com/jobs/~018e7f01a0324f9914
Yes thanks, applied!
🟢 on the proposal. Feel free to create the PR
Hey @kevinksullivan, should I apply to same job for bug report bonus?
Yes @kursat , please go ahead and apply as well!
Great, I've applied, thanks for quick response.
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.18-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/6561
If no regressions arise, payment will be issued on 2021-12-15. :confetti_ball:
Hey @kevinksullivan, I wanted to remind you that I'm still not hired on upwork.
Hey @kevinksullivan, I wanted to remind you that I'm still not hired on upwork.
Not you alone.
But the day is coming this evening for our timezone only
Both hired @developvsn @kursat ! And payment will happen tomorrow assuming no regressions.