Skip to content

Commit

Permalink
fix incorrect formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Jun 13, 2024
1 parent dcf769c commit 1d047be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,7 @@ where
BlockQuoteKind::Warning => "WARNING",
BlockQuoteKind::Caution => "CAUTION",
};
state.padding.push(format!(" > [!{kind}]").into());
state.padding.push("\n".into());
state.padding.push(format!(" > ").into());
state.padding.push(format!(" > [!{kind}]\n > ").into());
state.newlines_before_start = 1;

// same logic as traditional blockquote, see above
Expand Down

0 comments on commit 1d047be

Please sign in to comment.