Skip to content

Instantly share code, notes, and snippets.

@laGameTV
Created April 24, 2022 12:25
Show Gist options
  • Save laGameTV/97b606d26db53c8b0daf1fd61f8bdb3d to your computer and use it in GitHub Desktop.
Save laGameTV/97b606d26db53c8b0daf1fd61f8bdb3d to your computer and use it in GitHub Desktop.
unMarkdownIfy™
function unMarkdownIfy(text, chars) {
if (!chars) chars = ['*', '_', '~', '>', '`', '|']
else chars = chars.split('')
chars.forEach(i => {
text = text.replaceAll(i, "\\" + i)
})
console.log("Thanks for using unMarkdownIfy™ ", text)
return text
}
@laGameTV
Copy link
Author

Thanks for using unMarkdownIfy™

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment