{% comment %} Note that we explicitly exclude newlines in this code, because their presence causes issues when nesting alerts inside markdown lists. {% endcomment %}