Fix for single backticks with line breaks

f8dbe262c72eb3bb11a56e399ab5f668d253f739

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

1 files changed, +4 -4Ignore whitespace
public/scripts/showdown-underscore.js+4 -4
@@ -8,10 +8,10 @@ export const markdownUnderscoreExt = () => {
88
99 return [{
1010 type: 'lang',
1111 regex: /(`{3,})\s*\n[\s\S]*?\n\1(?:\n|$)|(`{1,2}).*?\2|(\n`\n[\s\S]*?\n`\n)|(?<!\S)_(?!_)([^_\n]+?)(?<!_)_(?!\w)/g,
1212 replace: function(match, tripleBackticks, singleOrDoubleBackticks, singleBackticksWithLineBreaks, italicContent) {
1313 if (singleOrDoubleBackticks || tripleBackticks || singleBackticksWithLineBreaks) {
1414 // If it's any type of backticks, return unchanged
1515 return match;
1616 } else if (italicContent) {
1717 // If it's an italic group, apply the replacement