posty.renderer.util module

posty.renderer.util.absolute_url_func(site)[source]

Returns a markdown filter function that returns an absolute URL for the given relative URL, simply concatenating config[‘base_url’] with the URL.

posty.renderer.util.markdown(text)[source]

Returns the rendered version of the given Markdown text

posty.renderer.util.media_url_func(site)[source]

Returns a filter function that returns a full media URL for the given file, scoped to the given Site object.

For example, if the Site has its base_url set to ‘/foo/’ then: img/my_picture.jpg -> /foo/media/img/my_picture.jpg