docs/lib/encode-bracketed-parenthese...

7 строки
240 B
JavaScript

// prevent `[foo] (bar)` strings with a space between from being interpreted as markdown links
// by encoding the space character
module.exports = function encodeBracketedParentheses (input) {
return input.replace(/] \(/g, '] (')
}