Skip to content

Commit

Permalink
Merge pull request #143 from nimah79/main
Browse files Browse the repository at this point in the history
Support unicode tokens in standardizing line endings
  • Loading branch information
brendt authored Aug 27, 2024
2 parents ca84b97 + 39259c9 commit cbc3dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Languages/Base/Injections/GutterInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function addClass(int $line, string $class): self

public function parse(string $content, Highlighter $highlighter): ParsedInjection
{
$lines = preg_split('/\R/', trim($content));
$lines = preg_split('/\R/u', trim($content));

$gutterNumbers = [];
$longestGutterNumber = '';
Expand Down
2 changes: 1 addition & 1 deletion src/Languages/Ellison/Injections/ParserInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function parseContent(string $content, Highlighter $highlighter): string
{
$ellison = new Ellison();
$parsed = [];
$paragraphs = preg_split('/\R/', trim($content));
$paragraphs = preg_split('/\R/u', trim($content));

foreach ($paragraphs as $paragraph) {
$parsedParagraph = '';
Expand Down

0 comments on commit cbc3dc0

Please sign in to comment.