remove hash links

This commit is contained in:
Chris Waring 2020-11-20 17:57:08 +00:00
parent 29836c1a94
commit 9015499b19
No known key found for this signature in database
GPG Key ID: 4D2E767CC8B1C083

View File

@ -11,7 +11,7 @@ export const Markdown = ({ md, options }) => {
{
unified()
.use(parse)
.use(linkifyRegex(/[@#](\w*[0-9a-zA-Z-_]+\w*[0-9a-zA-Z-_])/g)) // @user #tag
.use(linkifyRegex(/@(\w*[0-9a-zA-Z-_]+\w*[0-9a-zA-Z-_])/g)) // @user
.use(linkifyRegex(/^(https?):\/\/[^\s$.?#].[^\s]*$/gm)) // http(s) links
.use(remark2react, options)
.processSync(md).result