Skip to content

Commit

Permalink
escape pipe chars in examples markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Nov 2, 2024
1 parent 9139e64 commit 161c6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc-templates/frontpage.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ For mapping set metadata please see [here](MappingSet.md).
|--------------------|---------------------------------------------------------|----------------------------------------|---------------------------|-------------|
{%- for slot in classes['mapping'].slots %}
{%- set slot_info = slots[slot] %}
| **{{ slot }}** | {{ slot_info.description | default("No description") }} | {% if slot_info.range in enums %}{{ enums[slot_info.range].permissible_values.keys() | join(", ") }}{% else %}{% if slot_info.range == "EntityReference" %}entity reference (e.g. CURIE in TSV){% else %}{{ slot_info.range }}{% endif %}{% endif %} | {% if slot_info.examples is defined and slot_info.examples | length > 0 %}{{ slot_info.examples[0].value }}{% else %}N/A{% endif %} | {% if slot_info.required | default(false) %}Required{% elif slot_info.recommended | default(false) %}Recommended{% else %}Optional{% endif %} |
| **{{ slot }}** | {{ slot_info.description | default("No description") }} | {% if slot_info.range in enums %}{{ enums[slot_info.range].permissible_values.keys() | join(", ") }}{% else %}{% if slot_info.range == "EntityReference" %}entity reference (e.g. CURIE in TSV){% else %}{{ slot_info.range }}{% endif %}{% endif %} | {% if slot_info.examples is defined and slot_info.examples | length > 0 %}{% if slot_info.examples[0] is string %}{{ slot_info.examples[0].replace("|", "\|") }}{% elif slot_info.examples[0] is mapping %}{{ slot_info.examples[0].value | default("N/A") | replace("|", "\|") }}{% else %}{{ slot_info.examples[0] }}{% endif %}{% else %}N/A{% endif %} | {% if slot_info.required | default(false) %}Required{% elif slot_info.recommended | default(false) %}Recommended{% else %}Optional{% endif %} |
{%- endfor %}

### Quick links
Expand Down

0 comments on commit 161c6db

Please sign in to comment.