]> git.lizzy.rs Git - rust.git/commit
Leverage itemized blocks to support formatting markdown block quotes
authorYacin Tmimi <yacintmimi@gmail.com>
Thu, 30 Dec 2021 00:59:54 +0000 (19:59 -0500)
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>
Fri, 11 Feb 2022 23:31:06 +0000 (17:31 -0600)
commit1e78a2b258470fcab13e8c933212667e64b21d3e
treeecf40fa6cec26fd7abbdcce772912c923b5e1417
parentb05b3138001c97cbabeb3e20a0960b9f75341ee0
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``.
src/comment.rs
tests/source/issue-5157/indented_itemized_markdown_blockquote.rs [new file with mode: 0644]
tests/source/issue-5157/nested_itemized_markdown_blockquote.rs [new file with mode: 0644]
tests/source/issue-5157/support_itemized_markdown_blockquote.rs [new file with mode: 0644]
tests/target/issue-5157/indented_itemized_markdown_blockquote.rs [new file with mode: 0644]
tests/target/issue-5157/nested_itemized_markdown_blockquote.rs [new file with mode: 0644]
tests/target/issue-5157/support_itemized_markdown_blockquote.rs [new file with mode: 0644]