zola/components/site
Hanno Braun 6d6df45f23
Make shortcodes work in markdown filter (#1358)
* Move `load_tera` to `templates`

I don't know if this is a good place for it, conceptually. I'm moving it
there because I need to use it from `templates`, and `templates` can't
depend on `site`, because there's already a dependency in the opposite
direction.

* Load templates in `markdown` filter

This enables the `markdown` filter to handle shortcodes, as long as
those shortcodes don't access any context variables.

Addresses #1350

* Update documentation of `markdown` filter

* Only load templates for `markdown` filter once

* Clarify `markdown` filter documentation

This is a lightly edited version of what @southerntofu suggested.
2021-02-19 20:51:08 +01:00
..
benches Fixed site benches compilation 2020-12-14 20:42:55 +01:00
src Make shortcodes work in markdown filter (#1358) 2021-02-19 20:51:08 +01:00
tests Add data-lang on code blocks 2021-01-02 09:29:28 +01:00
Cargo.toml Fix html minification 2021-01-07 19:04:17 +01:00