Skip to content

Cannot use numbers as titles #7209

@PlasmaHH

Description

@PlasmaHH

Context

No response

Bug description

When adding a title that is only a number like:

---
tags:
    - 1234
---

in the header, then material/plugins/tags/plugin.py line 149 in _render_tag_index errors out in the sorted(self.tags.items()) part because for some reason I was not able to figure out it did convert the key part to an int and thus python complains about the inability to compare ints and strings.

Related links

Reproduction

Just add a number only as the title to any project that is using tags.

Steps to reproduce

Just add a number only as the title to any project that is using tags.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions