Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashtags rendered in templates create incorrect links to tag pages #1196

Open
Maarrk opened this issue Jan 2, 2025 · 0 comments · May be fixed by #1199
Open

Hashtags rendered in templates create incorrect links to tag pages #1196

Maarrk opened this issue Jan 2, 2025 · 0 comments · May be fixed by #1199

Comments

@Maarrk
Copy link
Contributor

Maarrk commented Jan 2, 2025

Hashtags rendered in templates create incorrect links to tag pages (they include < > in the address). Related to #1072 and
Found by @mjf in https://community.silverbullet.md/t/my-first-hours-with-sb/743/9?u=maarrk, a minimal example below:

#tag1 #<second tag>

```template
{{#each tags}}
#<{{.}}>
{{/each}}
```

image

Probably need to change a slice(1) into extractHashtag (introduced by #1116) somewhere in template rendering chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant