-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Paragraphs in block doc comments are broken #62552
Comments
@Cldfire Could you try bisecting the regression to an old Rust version to see when it about happened? |
Yeah, I plan on investigating this and putting a PR together today. |
Update: I've pinpointed the cause of the issue to #60140 (commit 3030164). The broken behavior was introduced by the upgrade to pulldown-cmark 0.4.1. I looked over the commit and nothing stood out to me as being the potential cause, which implies that the issue is within pulldown-cmark itself. In any case, I don't really have the time to go digging deeper into the library at the moment; perhaps someone with knowledge in this area has an idea of what specifically could be responsible for this? |
I do not think so. My reading of the commonmark spec is that a "blank line" may contain spaces. I have filed pulldown-cmark/pulldown-cmark#370 for this issue. |
Cool, thanks! |
…earth Update pulldown-cmark version Fixes #62571. Fixes #62770. Fixes #62552. cc @rust-lang/rustdoc @Centril @pietroalbini
I returned to a crate of mine for the first time in quite a while and was perplexed to see that all of the paragraphs in my doc comments were gone, and instead had been turned into line breaks (so all of the paragraphs were squashed together).
Upon investigation I discovered that this was due to my usage of block doc comments (
/** */
) rather than the more common///
style. It occurs on both the current stable and nightly release.Source comment:
Output when using block doc comments:
And the HTML:
Output after deleting the block doc comment start / end syntax and placing
///
in front of each line (this is the expected output for both):And the HTML for that:
The text was updated successfully, but these errors were encountered: