feat: Deal correctly in markdown with links that contain parenthesis.
This commit is contained in:
parent
1980ac53e3
commit
b8d2823d2b
|
@ -4,7 +4,9 @@ import textVersion from "textversionjs"
|
|||
/* Definitions */
|
||||
var styleConfig = {
|
||||
linkProcess: function(href, linkText){
|
||||
return `[${linkText}](${href})`;
|
||||
let newHref = href ? href.replace(/\(/g, "%28").replace(/\)/g, "%29") : ""
|
||||
// Deal corretly in markdown with links that contain parenthesis
|
||||
return `[${linkText}](${newHref})`;
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user