-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Can I replace spaces with dashes for URL generation? #95
Comments
This would be useful for many use cases, not only Zola! |
It's currently pretty hard-coded: Lines 674 to 688 in 6af4c91
I'm not against making this more configurable/overrideable, but it would be nice to know what you're trying to achieve and why you would want a different behavior. The intent of obsidian-export is to give you a normalized CommonMark input to feed to later processors (such as static site generators like Zola). It's obsidian-export's job to make sure that input has valid links/paths on the local filesystem that those tools can resolve correctly (which it currently does). It's not intended to construct final URLs directly, as that's really the job of Hugo, Zola, etc. to do (because it's also their concern to change |
Related issue: #73 |
I also had an issue where I wanted to leave the spaces encoded as literal spaces, for a responsive image partial for a hugo site, which uses the image in markdown as
(since the image filename itself is not renamed to be percent encoded by obsidian-export the partial does not find the asset) Of course the partial could be changed to first percent encode the resource, but I'm just getting started with hugo... Partial I'm using: https://mijndertstuij.nl/posts/hugo-responsive-images/ |
Using your solution to generate website with Obsidian Zola. Can I somehow override the default URL generation mechanics of obsidian-export (to change spaces to dashes)?
The text was updated successfully, but these errors were encountered: