HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.36k stars 73 forks source link

internal links struggle with certain types of headers #279

Closed ja-nova closed 2 months ago

ja-nova commented 2 months ago

unfortunately, internal links dont work for me for headers with accent letters and white spaces. it works only for simple one-word headers... i also tried to insert IDs to each header but it doesnt work either, even if the same html code works perfectly on other website.

how could i solve this issue please?

HermanMartinus commented 2 months ago

The header ids are slugified, which means that special characters get "unspecialed", spaces get turned into dashes, etc. You can see what the id of the header is by right clicking the header on your post and selecting "Inspect element", then set your link to that value.

Pop me an email if you are still struggling with this :)

ja-nova commented 2 months ago

thank you:)