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

Correctly extract hashtag content in links and Page Picker filter #1199

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Maarrk
Copy link
Contributor

@Maarrk Maarrk commented Jan 3, 2025

This fixes #1196

Also went through the code and looked at all instances of replace("#, replace('#, and slice(1 to find other locations where extractHashtag should be used. I think now it should be good.

Also, is there a preference between imports starting with ../../plug-api and @silverbulletmd/silverbullet? I see both throughout the codebase, and seems to me that Deno uses one or the other for automatic imports. I'd say that the second option is easier to copy into other files.

plugs/markdown/markdown_render.ts Outdated Show resolved Hide resolved
@zefhemel
Copy link
Collaborator

zefhemel commented Jan 4, 2025

Looks good, but indeed let's use the @silverbulletmd/silverbullet style imports where possible

@Maarrk Maarrk force-pushed the pr-rendered-hashtag branch from b344f02 to fe67370 Compare January 4, 2025 16:32
@Maarrk Maarrk requested a review from zefhemel January 4, 2025 16:33
@Maarrk
Copy link
Contributor Author

Maarrk commented Jan 4, 2025

Changed to silverbulletmd/silverbullet where possible, but not everything is exported and available this way, for example import * as TagConstants from "../../plugs/index/constants.ts"; had to stay this way.

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 this pull request may close these issues.

Hashtags rendered in templates create incorrect links to tag pages
2 participants