{#- A marked-up text: unchanged, added (green), crossed out (red), highlighted (yellow, its comment on hover and after it); each change numbered. -#} {% macro marked(shown, id="rv-marked") -%}
{% for p in shown %}{% if p.n %}{{ p.n }}{% endif %}{% if p.op == "ins" %}{{ p.text }}{% elif p.op == "del" %}{{ p.text }}{% elif p.op == "mark" %}{{ p.text }}{% if p.comment %}{{ p.comment }}{% endif %}{% else %}{{ p.text }}{% endif %}{% endfor %}
{%- endmacro %}