From be9d90516c1bb1f499f7242cf29c4ec8a74739a1 Mon Sep 17 00:00:00 2001 From: Lily Wang <31115101+lilyminium@users.noreply.github.com> Date: Wed, 4 Sep 2024 00:53:22 +1000 Subject: [PATCH] Add Markdown support for team members (#403) * add markdownify * add link support --- _data/team/roles/code_of_conduct.yml | 2 +- _includes/team_table_member_cell.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_data/team/roles/code_of_conduct.yml b/_data/team/roles/code_of_conduct.yml index a7df6cde..b133f459 100644 --- a/_data/team/roles/code_of_conduct.yml +++ b/_data/team/roles/code_of_conduct.yml @@ -8,6 +8,6 @@ tasks: - Periodically review, revise and update current code of conduct procedures current_members: - - Jenna Swarthout Goddard + - "[Jenna Swarthout Goddard](https://github.com/jennaswa)" - Richard Gowers - Micaela Matta diff --git a/_includes/team_table_member_cell.html b/_includes/team_table_member_cell.html index 52c7a1fd..f8a52a2f 100644 --- a/_includes/team_table_member_cell.html +++ b/_includes/team_table_member_cell.html @@ -10,12 +10,13 @@ {% assign all_members = leads | concat: members %} {% assign sorted_names = all_members | sort %} + {%- for member in sorted_names -%} {%- if leads contains member -%} - {{ member }} + {{ member | markdownify | strip_newlines | remove: '
' | remove: '
'}} {%- else -%} - {{ member }} + {{ member | markdownify | strip_newlines | remove: '' | remove: '
'}} {%- endif -%}