feat: added tags to post
This commit is contained in:
parent
55e67d1e27
commit
2f5bf48b42
2 changed files with 4 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ const isReleased = (post) => {
|
|||
}
|
||||
|
||||
const markdownItHashtag = (md) => {
|
||||
const hashtagRegex = /^#([a-zA-Z][a-zA-Z0-9_\\\\/]*)(?![a-zA-Z0-9_-])/;
|
||||
const hashtagRegex = /^#([a-zA-Z][a-zA-Z0-9_\\\\/\-]*)(?![a-zA-Z0-9_-])/;
|
||||
|
||||
const HASH_CODE = '#'.charCodeAt(0);
|
||||
const SPACE_CODE = ' '.charCodeAt(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue