From a70213b00991cb72db090418f650702c8e9681e4 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Tue, 5 Jun 2018 15:57:03 +0900 Subject: [PATCH] Trim custom comment prefixes from code block without closing backticks --- src/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comment.rs b/src/comment.rs index cbb1bd36f005..4ca96f54c02f 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -406,7 +406,7 @@ fn rewrite_comment_inner( // We will leave them untouched. result.push_str(&comment_line_separator); result.push_str(&join_code_block_with_comment_line_separator( - &code_block_buffer, + &trim_custom_comment_prefix(&code_block_buffer), )); } }