fix: 🐛 Fix characters escaping #tag rendering

This commit is contained in:
Maxime Cannoodt
2022-08-16 20:17:51 +02:00
parent 7c9285492c
commit 30b2d26847
2 changed files with 4 additions and 3 deletions

View File

@@ -2,11 +2,12 @@
## [2022-08-16]
- fix: 🐛 Fix highlights not rendering correctly when mixed with other formatting.
- fix: 🐛 Fix highlights not rendering correctly when mixed with other formatting. ([issue #19](https://github.com/mcndt/noteshare.space/issues/19))
- fix: 🐛 Fix some characters escaping the rendering for #tags. ([issue #10](https://github.com/mcndt/noteshare.space/issues/10))
## [2022-08-11]
- feat: ✨ Users receive a unique error page when opening expired notes vs. wrong URL.
- feat: ✨ Users receive a unique error page when opening expired notes vs. wrong URL. ([issue #11](https://github.com/mcndt/noteshare.space/issues/11))
## [2022-08-07]

View File

@@ -43,7 +43,7 @@ const TagExtension = {
return src.match(/#/)?.index;
},
tokenizer(src: string) {
const match = src.match(/^#([\w/]+)[\W\s]/);
const match = src.match(/^#([0-9A-Za-zÀ-ÖØ-öø-ÿ/_-]+)[\s\n]?/);
if (match) {
return {
type: 'tag',