rust/tests/target/issue-5157/indented_itemized_markdown_blockquote.rs
Yacin Tmimi 1e78a2b258 Leverage itemized blocks to support formatting markdown block quotes
Fixes 5157

Doc comments support markdown, but rustfmt didn't previously assign any
semantic value to leading '> ' in comments. This lead to poor formatting
when using ``wrap_comments=true``.

Now, rustfmt treats block quotes as itemized blocks, which greatly
improves how block quotes are formatted when ``wrap_comments=true``.
2022-02-11 17:31:06 -06:00

7 lines
246 B
Rust

// rustfmt-wrap_comments: true
/// > For each sample received, the middleware internally maintains a
/// > sample_state relative to each DataReader. The sample_state can
/// > either be READ or NOT_READ.
fn block_quote() {}