diff --git a/src/utils/toMarkdown.js b/src/utils/toMarkdown.js index 9c3a696..3b2cf51 100644 --- a/src/utils/toMarkdown.js +++ b/src/utils/toMarkdown.js @@ -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})`; }, }