Skip to content

Commit

Permalink
Handle traling periods
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed May 9, 2024
1 parent 77c4e5e commit 4109273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Languages/Ellison/Injections/ParserInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function parseContent(string $content, Highlighter $highlighter): string

$offset = mb_stripos($content, $text);

$parsed .= Escape::tokens("<span class='hl-{$type}-sentence'>").$this->parseSentence($ellison, $text).Escape::tokens("</span>");
$parsed .= Escape::tokens("<span class='hl-{$type}-sentence'>").trim($this->parseSentence($ellison, $text), ' .').'. '.Escape::tokens("</span>");

$content = mb_substr($content, $offset + mb_strlen($text));
}
Expand Down

0 comments on commit 4109273

Please sign in to comment.