1

Prevent wrapping markdown headers in doc comments by ytmimi · Pull Request #5242...

 2 years ago
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.
neoserver,ios ssh client

Copy link

Collaborator

@ytmimi ytmimi commented 14 days ago

Fixes #5238

A markdown header is defined by a string that starts with #.

Previously, rustfmt would wrap long markdown headers when
wrap_comments=true. This lead to issues when rendering these headers
in HTML using rustdoc.

Now, rustfmt leaves markdown headers alone when wrapping comments.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK