mirror of
https://github.com/BoostIo/Boostnote
synced 2026-01-29 08:37:18 +00:00
change tag link format to :tag:tag
This commit is contained in:
@@ -1161,7 +1161,7 @@ class MarkdownPreview extends React.Component {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const regexIsTagLink = /^:tag:#([\w]+)$/
|
const regexIsTagLink = /^:tag:([\w]+)$/
|
||||||
if (regexIsTagLink.test(rawHref)) {
|
if (regexIsTagLink.test(rawHref)) {
|
||||||
const tag = rawHref.match(regexIsTagLink)[1]
|
const tag = rawHref.match(regexIsTagLink)[1]
|
||||||
dispatch(push(`/tags/${encodeURIComponent(tag)}`))
|
dispatch(push(`/tags/${encodeURIComponent(tag)}`))
|
||||||
|
|||||||
Reference in New Issue
Block a user