Skip to content

Commit

Permalink
Mark some less relevant links to be excluded from plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 2, 2020
1 parent b2ab892 commit 1ba0670
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions base-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ macros: >
{%- endmacro -%}
{%- macro user_link(user) -%}
<a href="{{ user.html_url }}">{{ (user.name or user.login)|e }}</a>
<a data-mautrix-no-link href="{{ user.html_url }}">{{ (user.name or user.login)|e }}</a>
{%- endmacro -%}
{%- macro commit_user_link(user) -%}
{% if user.username %}
<a href="https://github.com/{{ user.username }}">{{ user.name|e }}</a>
<a data-mautrix-no-link href="https://github.com/{{ user.username }}">{{ user.name|e }}</a>
{% else %}
{{ user.name|e }}
{% endif %}
Expand All @@ -88,7 +88,7 @@ macros: >
{%- endmacro -%}
{%- macro repo_link(repo, important=True) -%}
<a href="{{ repo.html_url }}">{{ repo.full_name|e }}</a>
<a data-mautrix-no-link href="{{ repo.html_url }}">{{ repo.full_name|e }}</a>
{%- endmacro -%}
{%- macro personal_link(user, self_text=None, possessive=False, self=sender) -%}
Expand Down Expand Up @@ -265,7 +265,8 @@ messages:
{% endif %}
{% macro page_link(page) %}
<a href="{{ page.html_url }}">{{ page.title }}</a>
<a data-mautrix-no-link href="{{ page.html_url }}">{{ page.title }}</a>
(<a href="{{ page.html_url }}/_compare/{{ page.sha }}^...{{ page.sha }}">diff</a>)
{% endmacro %}
{% set created, edited = [], [] %}
Expand Down

0 comments on commit 1ba0670

Please sign in to comment.