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

Mention capitalisation differences lead to multiple conflicting HTML outputs #63

Open
marcuswhybrow opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@marcuswhybrow
Copy link
Owner

[[Mention]] and [[mention]] are a build panic when both exist. The desired capitalisation cannot be reliably determined. The capitalisation effects the display title of the mention, but the mention slug's are the same. i.e. capital "Mention" has slug "mention" but lowercase title "mention" also has slug "mention" (slugs are always kebab-case).

It's a bug because it's no desired behaviour, but a byproduct of the rules.

What to do? Well currently we panic. The panic message helps, but cannot know this was the specific cause because it's only a dumb check looking for file overrites of files already created.

This problem intertwines with #56 and URL redirection, because both problems are collision resolution of build files across time.

Solution? I think there needs to be a check in the markdown mention parser. If a mention exists with the same slug but a different title, throw a specific panic. This sucks beause, a la #62, panic's silently break the devserver until one realises and checks the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant