Skip to content

Commit 3d19ccc

Browse files
committed
Exclude some links from plaintext in default config
1 parent a247248 commit 3d19ccc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ macros: >
8888
{%- endmacro -%}
8989
9090
{%- macro milestone_link(milestone, text=True) -%}
91-
{% if text %}milestone {% endif %}<a href="{{ milestone.html_url }}">{{ milestone.title|e }}</a>
91+
{% if text %}milestone {% endif %}<a data-mautrix-exclude-plaintext href="{{ milestone.html_url }}">{{ milestone.title|e }}</a>
9292
{%- endmacro -%}
9393
9494
{%- macro repo_link(repo, important=True) -%}
@@ -219,12 +219,12 @@ messages:
219219
{% elif aggregation.reopened %}
220220
reopened and
221221
{% endif %}
222-
<a href="{{ comment.html_url }}">commented</a> on {{ templates.issue_link }}:
222+
<a data-mautrix-exclude-plaintext href="{{ comment.html_url }}">commented</a> on {{ templates.issue_link }}:
223223
<blockquote>{{ comment.body|markdown }}</blockquote>
224224
{% else %}
225225
{{ action }}
226226
{{ personal_link(comment.user, possessive=True) }}
227-
<a href="{{ comment.html_url }}">comment</a> on {{ templates.issue_link }}
227+
<a data-mautrix-exclude-plaintext href="{{ comment.html_url }}">comment</a> on {{ templates.issue_link }}
228228
{% endif %}
229229
230230
push: >
@@ -248,7 +248,7 @@ messages:
248248
{% for commit in commits %}
249249
{% if commit.distinct %}
250250
<li>
251-
<a href="{{ commit.url }}"><code>{{ commit.id[:8] }}</code></a>
251+
<a data-mautrix-exclude-plaintext href="{{ commit.url }}"><code>{{ commit.id[:8] }}</code></a>
252252
{{ util.cut_message(commit.message)|e }}
253253
{% if commit.author.username != sender.login %}
254254
by {{ commit_user_link(commit.author) }}

0 commit comments

Comments
 (0)