Skip to content

Commit cbc3dc0

Browse files
authored
Merge pull request #143 from nimah79/main
Support unicode tokens in standardizing line endings
2 parents ca84b97 + 39259c9 commit cbc3dc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Languages/Base/Injections/GutterInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function addClass(int $line, string $class): self
3434

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

3939
$gutterNumbers = [];
4040
$longestGutterNumber = '';

src/Languages/Ellison/Injections/ParserInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function parseContent(string $content, Highlighter $highlighter): string
2323
{
2424
$ellison = new Ellison();
2525
$parsed = [];
26-
$paragraphs = preg_split('/\R/', trim($content));
26+
$paragraphs = preg_split('/\R/u', trim($content));
2727

2828
foreach ($paragraphs as $paragraph) {
2929
$parsedParagraph = '';

0 commit comments

Comments
 (0)