1
Prevent wrapping markdown headers in doc comments by ytmimi · Pull Request #5242...
source link: https://github.com/rust-lang/rustfmt/pull/5242
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Fixes #5238
A markdown header is defined by a string that starts with #
.
Previously, rustfmt would wrap long markdown headers whenwrap_comments=true
. This lead to issues when rendering these headers
in HTML using rustdoc.
Now, rustfmt leaves markdown headers alone when wrapping comments.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK