mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
If a Markdown macro contains Jinja2 template code, it isn't rendered because render_markdown_path calls template.render on the including .md file before the macro has been included. And then the including .md file is converted to HTML. Therefore, the template code within a Markdown macro (if any) never gets rendered and is returned as it is. Now, after the source .md file is converted to HTML, render_markdown_path renders the resulting HTML so that any template code within included macros (if any) is finally rendered. |
||
|---|---|---|
| .. | ||
| jinja2 | ||
| __init__.py | ||
| backends.py | ||
| dev_settings.py | ||
| dev_urls.py | ||
| legacy_urls.py | ||
| local_settings.py | ||
| prod_settings_template.py | ||
| settings.py | ||
| terms.md.template | ||
| test_settings.py | ||
| urls.py | ||
| wsgi.py | ||