File tree Expand file tree Collapse file tree 6 files changed +1011
-648
lines changed Expand file tree Collapse file tree 6 files changed +1011
-648
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ public function content(): ?string
132
132
->after ('--- ' )
133
133
->after ('--- ' )
134
134
->markdown (extensions: [
135
+ new \Laravelsu \Highlight \CommonMark \HighlightExtension (),
135
136
new UnfencedExtension ,
136
137
])
137
138
->toString ();
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Support \Facades \Storage ;
6
6
use Illuminate \Support \Str ;
7
+ use Laravelsu \Highlight \CommonMark \HighlightExtension ;
7
8
use Symfony \Component \Yaml \Yaml ;
8
9
9
10
class Library
@@ -29,7 +30,9 @@ public function __construct(string $name)
29
30
$ this ->content = Str::of ($ raw )
30
31
->after ('--- ' )
31
32
->after ('--- ' )
32
- ->markdown ()
33
+ ->markdown (extensions: [
34
+ new HighlightExtension ()
35
+ ])
33
36
->toString ();
34
37
}
35
38
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ public function prettyComment(): string
125
125
],
126
126
],
127
127
[
128
+ new \Laravelsu \Highlight \CommonMark \HighlightExtension (),
128
129
new MentionExtension ,
129
130
]
130
131
);
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ public function toHtml(): string
52
52
'allow_unsafe_links ' => false ,
53
53
'html_input ' => 'escape ' ,
54
54
'max_nesting_level ' => 20 ,
55
- ])
55
+ ],
56
+ [
57
+ new \Laravelsu \Highlight \CommonMark \HighlightExtension (),
58
+ ])
56
59
->toString ();
57
60
58
61
return app (Pipeline::class)
Original file line number Diff line number Diff line change 23
23
"cagilo/cagilo" : " ^3.3" ,
24
24
"esplora/spire" : " 0.0.3" ,
25
25
"guzzlehttp/guzzle" : " ^7.2" ,
26
+ "hidehalo/nanoid-php" : " ^2.0" ,
26
27
"hotwired-laravel/turbo-laravel" : " 2.0.1" ,
27
28
"intervention/image" : " ^3.4" ,
28
29
"jolicode/jolitypo" : " ^1.4" ,
35
36
"laravel/telescope" : " ^5.0" ,
36
37
"laravel/tinker" : " ^2.8" ,
37
38
"laravel/unfenced" : " dev-main" ,
39
+ "laravelsu/highlight" : " dev-main" ,
38
40
"orchid/platform" : " ^14.39" ,
39
41
"overtrue/laravel-like" : " ^5.2" ,
40
42
"spatie/laravel-activitylog" : " ^4.7" ,
You can’t perform that action at this time.
0 commit comments