Skip to content

Commit

Permalink
Add Markdown support for team members (#403)
Browse files Browse the repository at this point in the history
* add markdownify

* add link support
  • Loading branch information
lilyminium authored Sep 3, 2024
1 parent c96cdd5 commit be9d905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _data/team/roles/code_of_conduct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions _includes/team_table_member_cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

{% assign all_members = leads | concat: members %}
{% assign sorted_names = all_members | sort %}
<!-- markdownify to allow markdown, but remove additional <p> tags this adds -->
{%- for member in sorted_names -%}
<!-- Bold the name if they're a lead -->
{%- if leads contains member -%}
<b>{{ member }}</b>
<b>{{ member | markdownify | strip_newlines | remove: '<p>' | remove: '</p>'}}</b>
{%- else -%}
{{ member }}
{{ member | markdownify | strip_newlines | remove: '<p>' | remove: '</p>'}}
{%- endif -%}
<!-- Add a comma if not the last item.
The % and %- denote leaving a space or not leaving a space
Expand Down

0 comments on commit be9d905

Please sign in to comment.