[BUG]: Markdown provided in `types[key].link` is injected as-is into HTMLAnchorElement's href attribute
Maintainer thường phản hồi trong vòng 1 ngày
@theworker02 đang làm issue này rồi.
Từ ngày 26/9/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 61/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu với cấu hình types tùy chỉnh đã được ghi chép và tái hiện anchor được tạo bằng giá trị Markdown được báo cáo trong types[key].link. Theo dõi cách giá trị đó trở thành HTML được tạo, sau đó xác minh rằng hành vi mong đợi tạo ra một anchor hoàn chỉnh thay vì đặt chuỗi Markdown vào href.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
📝 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
- I am willing to submit a pull request for this issue.
- Ngôn ngữ chính
- JavaScript
- Star
- 424
- Fork
- 151
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của all-contributors/cli
-
Unquoted commit message is causing `npx all-contributors add` to fail on v7.0.0Có thể đã có người làm @stchigel đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
all-contributors/cli#587 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
all-contributors/cli#586 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
all-contributors/cli#584 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Additional Config File OptionsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
all-contributors/cli#499 · 2 bình luận · 6 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Consider adding a PR title checker to enforce angular / conventional commitsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởtype: ci type: enhancement type: infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
all-contributors/cli#482 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của all-contributors/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JimLiu/baoyu-design#23 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Data Manager offers a one-click purge of the onboard tools registry, labelled "Tool execution data"Đang mởdata-safety effort:low model:light plan planner:opus-5-5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: four cross-page links point at anchors that do not existCó thể đã có người làm @6t9xstar đã nhận hôm nay. Đang mởdifficulty:easy documentation good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
API: `tsc.exe` opens a visible console window on Windows when the parent process has no consoleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/TypeScript#65083 ·
Maintainer thường phản hồi trong vòng 1 ngày