Your code does not work properly with the proportional italic font that's shown on the chalkboard!

How can I make it work also for non monospaced fonts?

Expand full comment

Ah well-spotted. I was making the assumption of using monospaced fonts here since f-strings control the width through the number of characters. This is why we like monospaced fonts in coding!

The way proportional fonts are displayed cannot be so easily controlled. HTML formatting would be one option…

Expand full comment