diff options
Diffstat (limited to '')
-rw-r--r-- | src/compiler.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 6127231..3aacca0 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -150,6 +150,8 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St | TokenType::BlankLineEnding | TokenType::BlankLineWhitespace | TokenType::Whitespace + | TokenType::HardBreakEscape + | TokenType::HardBreakEscapeMarker | TokenType::HtmlFlowData | TokenType::HtmlTextData | TokenType::CodeFencedFence @@ -192,6 +194,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St | TokenType::CharacterEscapeMarker | TokenType::CharacterReference | TokenType::CharacterReferenceMarkerSemi + | TokenType::HardBreakEscapeMarker | TokenType::Autolink | TokenType::AutolinkMarker => {} TokenType::HtmlFlow | TokenType::HtmlText => { @@ -208,6 +211,9 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St TokenType::Paragraph => { buf_tail_mut(buffers).push("</p>".to_string()); } + TokenType::HardBreakEscape => { + buf_tail_mut(buffers).push("<br />".to_string()); + } TokenType::CodeIndented | TokenType::CodeFenced => { let seen_data = code_flow_seen_data.expect("`code_flow_seen_data` must be defined"); |