π Describe the bug
When using the recommended setup when defining custom types, the following configuration:
"types": {
"core": {
"symbol": "π΅οΈ",
"description": "Core team",
"link": "[<%= symbol %>](https://github.com/bl-portal-bot)"
}
}
...ends up generating the following cell:
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/terrymun">
<img src="https://avatars.githubusercontent.com/u/5593067?v=4?s=96" width="96px;" alt="Terry Mun-Andersen"/>
<br />
<sub><b>Terry Mun-Andersen</b></sub>
</a>
<br />
<!-- NOTE: This is where the problem is, see `href` value below -->
<a href="[π΅οΈ](https://github.com/orgs/LEGO/teams/bricklink-portal)" title="Core team">
π΅οΈ
</a>
<a href="https://github.com/lego/bl-portal-frontend/commits?author=terrymun" title="Code">π»</a></td>
...which is incorrect, as the markdown is injected as-is into the href attribute of the HTMLAnchorElement. Updating the link field to just contain the URL will then generate the correct output:
"types": {
"core": {
"symbol": "π΅οΈ",
"description": "Core team",
"link": "https://github.com/bl-portal-bot"
}
}
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/terrymun">
<img src="https://avatars.githubusercontent.com/u/5593067?v=4?s=96" width="96px;" alt="Terry Mun-Andersen"/>
<br />
<sub><b>Terry Mun-Andersen</b></sub>
</a>
<br />
<!-- NOTE: Here the `href` value is correct -->
<a href="https://github.com/orgs/LEGO/teams/bricklink-portal" title="Core team">
π΅οΈ
</a>
<a href="https://github.com/lego/bl-portal-frontend/commits?author=terrymun" title="Code">π»</a>
</td>
π£ Steps to Reproduce
Use the following configuration to add a custom emoji key as described in the docs:
"types": {
"core": {
"symbol": "π΅οΈ",
"description": "Core team",
"link": "[<%= symbol %>](https://github.com/bl-portal-bot)"
}
}
This results in the markdown string being inserted as-is into the href attribute.
π― Expected behavior
Using "link": "[<%= symbol %>](https://github.com/bl-portal-bot)" should generate the entire HTMLAnchorElement correctly.
π‘ Additional context
No response
π€ Participation
π Describe the bug
When using the recommended setup when defining custom types, the following configuration:
...ends up generating the following cell:
...which is incorrect, as the markdown is injected as-is into the
hrefattribute of the HTMLAnchorElement. Updating thelinkfield to just contain the URL will then generate the correct output:π£ Steps to Reproduce
Use the following configuration to add a custom emoji key as described in the docs:
This results in the markdown string being inserted as-is into the
hrefattribute.π― Expected behavior
Using
"link": "[<%= symbol %>](https://github.com/bl-portal-bot)"should generate the entire HTMLAnchorElement correctly.π‘ Additional context
No response
π€ Participation