Repository navigation
Resolve #1141: Add hint for missing numbering, improve hint format consistency - #1456
Conversation
|
I want to have better infrastructure for tips like this, but for now this is fine. One change I'd like to see is to have everything lowercase. Regarding the separator between message and hint: We currently have two such "did you" hints. One is separate with a period and one with a colon and en-dash. Already inconsistent... I do not have a strong preference either way, so . |
706a202 to
3b8ff05
Compare
Done
I've decided to streamline all to use a normal - character. I think it's reasonable to use the ascii character here, not the en-dash.
If I find the time, would you be happy to accept a PR for that? I'll happily experiment if there's a convenient way of doing this. Edit: I just realized there's other en-dashes in messages - should I replaced them too while I'm at it, or is the en-dash preferred? Edit 2: I've added a test for this hint, I hope the |
|
I'm with you on using normal ASCII instead of en-dashes. Feel free to go ahead and replace that, too.
|
|
I did a full text search for en- and em-dashes, the one in 3d6f63e seems to be the last one that was not the ASCII character already. |
I would be! |
|
Thanks! |
I kept the recommendation really short, as codespan reporting recommends:
I think it would make sense to have a way to report additional recommendations/fixes internally, so that the message can contain multiple parts while adhering to the codespan reporting recommendations. Maybe using codespan reporting's
notes?How to reproduce:
Create a
.typfile with the following content:The content is straight out of the example for headings, with the
#set heading(numbering: "1.")removed.The user get's shown the following message now:
Is a test for this needed? If so, I'll happily write one.
This is my first contribution here, so if there is anything I can do better, no matter what, feel free to tell me!