Skip to content

Commit

Permalink
render: trim whitepsace (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding authored Oct 21, 2024
1 parent 8bf531a commit 65c207c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ixx/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pub enum Content {
impl Content {
pub(crate) fn render(self) -> String {
match self {
Self::LiteralExpression { text } => highlight(&text),
Self::Markdown { text } => markdown::to_html(&text),
Self::LiteralExpression { text } => highlight(text.trim()),
Self::Markdown { text } => markdown::to_html(text.trim()),
}
}
}

0 comments on commit 65c207c

Please sign in to comment.