Revert underscore italics regex part

e3f010782d958f8591fbe2ff85e592cc9a929cc7

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/showdown-underscore.js+1 -1
@@ -8,7 +8,7 @@ export const markdownUnderscoreExt = () => {
88
9 return [{9 return [{
10 type: 'output',10 type: 'output',
11 regex: new RegExp('(<code>[\\s\\S]*?<\\/code>)|(?<!\\S)_(?!_)([^_\\n]+?)(?<!_)_(?!\\w)', 'g'),11 regex: new RegExp('(<code>[\\s\\S]*?<\\/code>)|\\b(?<!_)_(?!_)(.*?)(?<!_)_(?!_)\\b', 'g'),
12 replace: function(match, codeContent, italicContent) {12 replace: function(match, codeContent, italicContent) {
13 if (codeContent) {13 if (codeContent) {
14 // If it's inside <code> tags, return unchanged14 // If it's inside <code> tags, return unchanged