Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badges in Markdown summary reports do not render #719

Closed
Crown0815 opened this issue Dec 20, 2024 · 1 comment
Closed

Badges in Markdown summary reports do not render #719

Crown0815 opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@Crown0815
Copy link

Crown0815 commented Dec 20, 2024

Describe the bug

The badges in Markdown summary reports are not escaping the % symbol. They look like this:

![Line coverage](https://img.shields.io/badge/lines-65.7%-C10909)

which renders as Line coverage

By escaping the % using %25, the badge renders correctly:

![Line coverage](https://img.shields.io/badge/lines-65.7%25-C10909)

which renders as Line coverage

Example from official website:

https://reportgenerator.io/resources/reports/MarkdownAssembliesSummary/Summary.md

Original


Summary

Line coverage Branch coverage Method coverage

Assembly Line coverage Branch coverage Method coverage
Sample 69.4% 50% 66.6%

Fixed by replacing % with %25


Summary

Line coverage Branch coverage Method coverage

Assembly Line coverage Branch coverage Method coverage
Sample 69.4% 50% 66.6%

@danielpalme
Copy link
Owner

Thanks for reporting this issue.
I already fixed the problem in 6a2db6e.
The next release will contain this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants