Created
April 24, 2022 12:25
-
-
Save laGameTV/97b606d26db53c8b0daf1fd61f8bdb3d to your computer and use it in GitHub Desktop.
unMarkdownIfy™
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for using unMarkdownIfy™