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
The workaround is to use * instead of _ to wrap italics. Unfortunately, formatters like Prettier enforces _ so you end up with having to do this (works in Prettier 1.12+):
Note: could be a duplicate of #1178 (the following issue may be more detailed though)
Marked version: 0.3.19
Markdown flavor: not sure
What pain point are you perceiving?
Short strings in italics don't render properly:
See https://marked.js.org/demo/?text=Short%20strings%20in%20italics%20don%27t%20render%0A%0A_a_%0A%0A_ab_%0A%0AAll%20of%20these%20do%20render%20properly%3A%0A%0A*%20_abc_%0A*%20*a*%0A*%20*ab*%0A*%20*abc*%0A*%20__a__%0A*%20__ab__%0A*%20__abc__%0A*%20**a**%0A*%20**ab**%0A*%20**abc**%0A
What solution are you suggesting?
n/a
Expectation
Result
What was attempted
The workaround is to use
*
instead of_
to wrap italics. Unfortunately, formatters like Prettier enforces_
so you end up with having to do this (works in Prettier 1.12+):Or this if you're using prettier < 1.12
The text was updated successfully, but these errors were encountered: