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

Render patterns (regexes) in a monospaced font #2196

Open
cmeeren opened this issue Oct 28, 2022 · 0 comments · May be fixed by #2600
Open

Render patterns (regexes) in a monospaced font #2196

cmeeren opened this issue Oct 28, 2022 · 0 comments · May be fixed by #2600

Comments

@cmeeren
Copy link

cmeeren commented Oct 28, 2022

When using pattern, it currently renders like this (the rightmost part in green):

image

Since pattern is a regex, i.e. essentially code, it should be rendered in a monospaced font. In the above example, this would also make it much clearer that the pattern allows spaces. (The space before the final - is very thin and easy to miss if just scanning quickly over the pattern to get a grip on the allowed characters. As it is currently rendered, I would feel the urge to copy-paste it to a monospaced editor to make sure.)

miqh added a commit to miqh/redoc that referenced this issue Oct 13, 2024
@miqh miqh linked a pull request Oct 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants