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
Description
The punctuation of italic text with * and _ will match any number of leading *s and _s.
Scratch and bold have similar issues.
Code snippet
*__foo__* or _**bar**_
I want to mention that this bug is trivial to fix using #1679.
Possible solution:
// Allow only one line break
pattern: /(^|[^\\])([*_])((?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?)(\2)/,lookbehind: true,greedy: true,groups: {$2: 'punctuation',$4: 'punctuation',}
Support for nested styles could be added with $3: Prism.languages.markdown.
The text was updated successfully, but these errors were encountered:
Information
Description
The punctuation of italic text with
*
and_
will match any number of leading*
s and_
s.Scratch and bold have similar issues.
Code snippet
I want to mention that this bug is trivial to fix using #1679.
Possible solution:
Support for nested styles could be added with
$3: Prism.languages.markdown
.The text was updated successfully, but these errors were encountered: