Conversation
This will change anyway before we actually start using it, but I figure it's easier to edit this prose in Markdown rather than in HTML. This uses a little Jinja helper to automatically markdownify anything that's included from a Jinja template where the filename ends in .md before it goes through the templating engine.
...because we won't share their allergies.
|
I like this, but it does the opposite of (newly renamed) |
|
Running Jinja on the Markdown output is probably also what we want for the emails (#977), assuming there aren't any showstoppers there. |
|
The admin email preview code also currently does Jinja-then-markdown, and I'm beginning to think it's the only way it can work. Markdown will wrap every line in paragraphs or |
Ah yeah, the admin email sending does this, but we don't have an issue with untrusted input there. My gut feeling was that it probably wouldn't work but I hadn't got around to testing it. |
|
For once I'm not worried about security! By safe, I mean from getting ourselves into an awkward position where we have to escape input or restructure it to work around annoying/confusing behaviour. Markdown-then-Jinja works for static files, so maybe we just drop a warning if there are any Jinja tags inside the included file. Or we could use a custom block like |
This will change anyway before we actually start using it, but I figure
it's easier to edit this prose in Markdown rather than in HTML.
This uses a little Jinja helper to automatically markdownify anything
that's included from a Jinja template where the filename ends in .md
before it goes through the templating engine.