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

Double backticks with spaces aren't rendered properly #107

Open
NicolasHug opened this issue Apr 6, 2021 · 0 comments
Open

Double backticks with spaces aren't rendered properly #107

NicolasHug opened this issue Apr 6, 2021 · 0 comments

Comments

@NicolasHug
Copy link
Member

It is sometimes useful to write code-like bits in the docs, and we use double backticks for that. Those bits may contain spaces, and currently the spaces will be rendered as the regular background instead of the grey-ish background. For example:

        boxes (Tensor[N, 4]): boxes in ``(x1, y1, x2, y2)`` format
            with ``0 <= x1 < x2`` and ``0 <= y1 < y2``.

Is rendered as:
image

link: https://pytorch.org/vision/stable/ops.html#torchvision.ops.nms

There are occurrences in the pytorch docs as well: https://pytorch.org/docs/stable/tensors.html#torch.Tensor.where

It would be nice to have a uniform background instead, that isn't divided by the spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant