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

Cannot use numbers as titles #7209

Closed
1 of 4 tasks
PlasmaHH opened this issue May 24, 2024 · 2 comments
Closed
1 of 4 tasks

Cannot use numbers as titles #7209

PlasmaHH opened this issue May 24, 2024 · 2 comments
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@PlasmaHH
Copy link

PlasmaHH commented May 24, 2024

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

@squidfunk
Copy link
Owner

Thanks for reporting. Fixed in 1b346eb. I'm pretty sure this is a regression, as I remember to already have fixed this, but it may have got lost in an Insiders merge somehow. Regardless, numbers should work again now.

Next time, please respect the time and effort we put into supporting our users, by sticking to our bug reporting process and providing a minimal reproduction. It is absolutely mandatory per our bug reporting guidelines. Thank you.

@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open labels May 24, 2024
@squidfunk
Copy link
Owner

Released as part of 9.5.25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants