Skip to content

Commit be9d905

Browse files
authored
Add Markdown support for team members (#403)
* add markdownify * add link support
1 parent c96cdd5 commit be9d905

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

_data/team/roles/code_of_conduct.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ tasks:
88
- Periodically review, revise and update current code of conduct procedures
99

1010
current_members:
11-
- Jenna Swarthout Goddard
11+
- "[Jenna Swarthout Goddard](https://github.com/jennaswa)"
1212
- Richard Gowers
1313
- Micaela Matta

_includes/team_table_member_cell.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
{% assign all_members = leads | concat: members %}
1212
{% assign sorted_names = all_members | sort %}
13+
<!-- markdownify to allow markdown, but remove additional <p> tags this adds -->
1314
{%- for member in sorted_names -%}
1415
<!-- Bold the name if they're a lead -->
1516
{%- if leads contains member -%}
16-
<b>{{ member }}</b>
17+
<b>{{ member | markdownify | strip_newlines | remove: '<p>' | remove: '</p>'}}</b>
1718
{%- else -%}
18-
{{ member }}
19+
{{ member | markdownify | strip_newlines | remove: '<p>' | remove: '</p>'}}
1920
{%- endif -%}
2021
<!-- Add a comma if not the last item.
2122
The % and %- denote leaving a space or not leaving a space

0 commit comments

Comments
 (0)