[feature request]: strip custom prefix from links #376
Labels
enhancement
New feature or request
needs-further-input
Further information is required from the reporter
Zola (static site generator) uses a
[name](@/path/to/file.md)
syntax to resolve links (e.g.[blog](@/blog/_index.md)
will resolve tohref="/blog/"
once compiled, and it points to theblog/_index.md
file).By stripping the
@/
prefix from the link (option inconfig.toml
ideally) this could be supported, otherwise you just get a warningLink to non-existent document '@/blog/_index.md'
.My suggestion is to add a
strip_link_prefix
™️ option to the configuration, this could be a single string or a list? (maybe someone needs this?), and before checking if the link is valid, this prefix would be stripped from it.The text was updated successfully, but these errors were encountered: