You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some browser environments, Japanese text surrounded by <em></em> does not look different from ordinary texts. Technically speaking, this is not a bug but an intended behavior because Japanese fonts have no concept of italics. Still, we need to ensure the text is visually emphasized in some way or another, in all browsers.
Give up on <em> with Japanese (*あああ*) entirely, and use explicit brackets or quotation marks instead (「あああ」)
Add a rule in CSS and ensure <em> will somehow look different (But this also affects English text)
color
font-width
transform: skewX(-15deg);
Introduce "post-process" JavaScript code to change <em> to <strong> or <em class="bold"> only when it includes Japanese characters. Or find a way to do it during the server-side rendering process.
The text was updated successfully, but these errors were encountered:
In some browser environments, Japanese text surrounded by
<em></em>
does not look different from ordinary texts. Technically speaking, this is not a bug but an intended behavior because Japanese fonts have no concept of italics. Still, we need to ensure the text is visually emphasized in some way or another, in all browsers.Possible solutions:
<em>
with Japanese (*あああ*
) entirely, and use explicit brackets or quotation marks instead (「あああ」
)<em>
will somehow look different (But this also affects English text)color
font-width
transform: skewX(-15deg);
<em>
to<strong>
or<em class="bold">
only when it includes Japanese characters. Or find a way to do it during the server-side rendering process.The text was updated successfully, but these errors were encountered: