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

BUGFIX: Don't render embeds if link doesn't exist #35

Merged
merged 1 commit into from
May 3, 2024

Conversation

carbontwelve
Copy link
Contributor

This PR solves an issue where the wikilink detection would set a links href to /stubs/ before the interlinker looked up the file in question. This would result in the stubs page (if the file exists in the project) file object being loaded and passed to the embed compiler function.

On my website the stubs page is nunjucks and due to the plugin defaulting to liquid for rendering templates it would crash on invalid template syntax. This in of itself is a separate bug I will raise issue for.

@carbontwelve carbontwelve changed the base branch from main to v1.1.0 May 3, 2024 22:21
@carbontwelve carbontwelve merged commit 04d83de into v1.1.0 May 3, 2024
6 of 9 checks passed
@carbontwelve carbontwelve deleted the patch/v1.1.0/#31 branch May 3, 2024 22:27
@carbontwelve carbontwelve mentioned this pull request May 3, 2024
carbontwelve added a commit that referenced this pull request May 3, 2024
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.

1 participant