Skip to content

Commit

Permalink
allow empty line for quote tag only
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 3, 2024
1 parent 1c95f8a commit ec9b989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/line/code/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ impl Inline {
// Detect value
let value = regex.get(1)?;

if value.trim().is_empty() {
return None;
}

// Result
Some(Self {
value: value.to_string(),
Expand Down
4 changes: 0 additions & 4 deletions src/line/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ impl Quote {
// Detect value
let value = regex.get(1)?;

if value.trim().is_empty() {
return None;
}

// Result
Some(Self {
value: GString::from(value.as_str()),
Expand Down

0 comments on commit ec9b989

Please sign in to comment.