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 strikethrough extension fails if (a) the first character within the delimiters is punctuation, and (b) the character preceding the opening delimiter is either a letter or a number.
jmooring
changed the title
Strikethough extension fails if first character within delimiters is punctuation
Strikethrough extension fails if first character within delimiters is punctuation
Dec 21, 2024
This kind of extensions are implemented as same as the emphasis. CommonMark emphasis algorithm is known for complicated and having many edge cases. Espacially the emphasis algorighm is basically designed for sentences written in Western language(that is separated by spaces), other situations like CJK sentences and math often fail.
I think that GFM spec writes spec wrong(Aside from whether CommonMark emphasis algorithm is good or bad)
A better description...
The strikethrough extension fails if (a) the first character within the delimiters is punctuation, and (b) the character preceding the opening delimiter is either a letter or a number.
Tested with [email protected] playground
Markdown:
Expected:
Actual:
From the specifications (emphasis mine):
However, note that GitHub has the same problem. The example above rendered by GitHub:
K
1K~*1~
The text was updated successfully, but these errors were encountered: