Replace underscores in HTML output

138d6877f79cd074539d0108b25ef627fcf50d86

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

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