Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
7 lines
243 B
JavaScript
7 lines
243 B
JavaScript
// prevent `[foo] (bar)` strings with a space between from being interpreted as markdown links
|
|
// by encoding the space character
|
|
|
|
module.exports = function encodeBracketedParentheticals (input) {
|
|
return input.replace(/] \(/g, '] (')
|
|
}
|