diff --git a/src/components/comment/view/commentView.js b/src/components/comment/view/commentView.js index 06a8ba178..8ed2bc58f 100644 --- a/src/components/comment/view/commentView.js +++ b/src/components/comment/view/commentView.js @@ -54,7 +54,7 @@ class CommentView extends PureComponent { const { isShowSubComments } = this.state; return ( - + ]*>(.*?)<\s*[/]\s*a>)/g; const imgTagRegex = /(]*>)/g; const iframeRegex = /(?:]*)(?:(?:\/>)|(?:>.*?<\/iframe>))/g; -const markdownLinkRegex = /(?:__|[])|\[(.*?)\]\(.*?\)/g; +// const markdownLinkRegex = /(?:__|[])|\[(.*?)\]\(.*?\)/g; export const markDown2Html = (input) => { if (!input) { @@ -77,9 +77,9 @@ export const markDown2Html = (input) => { output = handleATag(output); } - if (markdownLinkRegex.test(output)) { - output = handleMarkdownLink(output); - } + // if (markdownLinkRegex.test(output)) { + // output = handleMarkdownLink(output); + // } output = md.render(output);