apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Home Page:https://answer.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redundant characters in the problem description: ’[‘, ‘]‘

Liamn0244 opened this issue · comments

Describe the bug

Redundant characters in the problem description: ’[‘, ‘]‘.
If a hyperlink is added to the text, then extra characters appear before and after the text in the problem description.

To Reproduce

image

@Liamn0244 😅 It's a feature, not a bug.

linkReg = `(?ism)<a.*?[^<]>(.*)?<\/a>`
linkRepl = " [$1] "

When the description is being displayed, the a-link is replaced with [link].