(Discussed in #199)
MkDocs has the url filter (implemented here and exported here) that resolves relative URLs to the current page. mkdocs-macro has a similar function fix_url which is not exported to the jinja environment.
The direct workaround is adding it to the environment in define_env as mentioned here. Nonetheless, as this functionality is frequently used such as when constructing href attributes, it would be beneficial to export this by default. Preferably the filter could be named url as well to match mkdocs behaviour.
(Discussed in #199)
MkDocs has the
urlfilter (implemented here and exported here) that resolves relative URLs to the current page. mkdocs-macro has a similar functionfix_urlwhich is not exported to the jinja environment.The direct workaround is adding it to the environment in
define_envas mentioned here. Nonetheless, as this functionality is frequently used such as when constructinghrefattributes, it would be beneficial to export this by default. Preferably the filter could be namedurlas well to match mkdocs behaviour.