-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustdoc never closes a list #38739
Comments
Workaround: add a |
Cannot reproduce on |
That didn't help. I am using |
@pyfisch I can reproduce this on |
@whitequark Indeed. Use line comments ( |
@pyfisch The ergonomics of that is absolutely atrocious for code examples, so I'm not going to. I don't see a reason for rustdoc to exhibit this "action at a distance"; why does a comment way below affect the way a list is closed? |
This is obviously a bug in rustdoc.
I don’t know the inner workings of rustdoc an I am not inclined to research this edge case related to uncommon doc-comment syntax. Maybe you can find the problem yourself in the code? |
Taking a look. |
This is the same issue as #42760: The code within the Some good news, though? The new Pulldown renderer is more strict about what items are part of list items, so it does what you want it to here. (cc #44229) |
Resolving? |
I removed lists iirc so yes definitely. |
Consider this comment:
There is no way to make rustdoc not add the third paragraph, and everything that follows, into the 2nd list item.
The text was updated successfully, but these errors were encountered: