Skip to content

Badges in Markdown summary reports do not render #719

Closed
@Crown0815

Description

@Crown0815

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%

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions