mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 22:12:19 +03:00
remove hash links
This commit is contained in:
parent
29836c1a94
commit
9015499b19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user