mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backends.py | ||
| compressors.py | ||