Skip to content

Commit

Permalink
change rendering of hard-line break from double-space to esacped-space
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeando authored and kivikakk committed May 20, 2022
1 parent 37e5e32 commit cbae4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ impl<'a, 'o> CommonMarkFormatter<'a, 'o> {
fn format_line_break(&mut self, entering: bool) {
if entering {
if !self.options.render.hardbreaks {
write!(self, " ").unwrap();
write!(self, "\\").unwrap();
}
self.cr();
}
Expand Down

0 comments on commit cbae4da

Please sign in to comment.