Fix for unmatched triple backticks

5f3dddfe219c1916e8dbbe181818f4a3788e9754

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

1 files changed, +4 -4Ignore whitespace
public/scripts/showdown-underscore.js+4 -4
@@ -8,16 +8,16 @@ export const markdownUnderscoreExt = () => {
88
99 return [{
1010 type: 'lang',
1111 regex: new RegExp('/(`{3,})[\\s*\n[\s\S]*?\n\1(?:\n|$)|(`{1,2}).*?\\2|\\b(?<!_\S)_(?!_)(.*[^_\n]+?)(?<!_)_(?!_)\\b', 'g'w)/g,
1212 replace: function(match, tripleBackticks, singleOrDoubleBackticks, italicContent) {
1313 if (tripleBacktickssingleOrDoubleBackticks || singleOrDoubleBacktickstripleBackticks) {
1414 // If it's any kind of code blockbackticks, return it unchanged
1515 return match;
1616 } else if (italicContent) {
1717 // If it's an italic group, apply the replacement
1818 return '<em>' + italicContent + '</em>';
1919 }
2020 // If neithernone conditionof isthe conditions are met, return the original match
2121 return match;
2222 },
2323 }];