Skip to content

Commit db33972

Browse files
committed
🔧 mis a jour de la config du rendu markdown
1 parent 6bafc28 commit db33972

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

config/markdown.php

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
* For the full copyright and license information, please view the LICENSE
1111
* file that was distributed with this source code.
1212
*/
13-
use League\CommonMark\Extension\Attributes\AttributesExtension;
1413
use League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkExtension;
1514
use League\CommonMark\Extension\Mention\MentionExtension;
16-
use League\CommonMark\Extension\TableOfContents\TableOfContentsExtension;
1715
use Torchlight\Commonmark\V2\TorchlightExtension;
1816

1917
return [
@@ -54,9 +52,22 @@
5452
League\CommonMark\Extension\Table\TableExtension::class,
5553
HeadingPermalinkExtension::class,
5654
MentionExtension::class,
57-
AttributesExtension::class,
5855
TorchlightExtension::class,
59-
TableOfContentsExtension::class,
56+
],
57+
58+
'heading_permalink' => [
59+
'html_class' => 'anchor mr-2 !text-skin-primary !no-underline hover:!text-skin-primary-hover focus:!text-skin-primary-hover focus:outline-none',
60+
'fragment_prefix' => '',
61+
'id_prefix' => '',
62+
'symbol' => '#',
63+
],
64+
65+
'mentions' => [
66+
'username' => [
67+
'prefix' => '@',
68+
'pattern' => '[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}(?!\w)',
69+
'generator' => config('app.url').'/user/%s',
70+
],
6071
],
6172

6273
/*
@@ -80,21 +91,6 @@
8091
'soft_break' => "\n",
8192
],
8293

83-
'heading_permalink' => [
84-
'html_class' => 'anchor !text-skin-primary !no-underline hover:!text-skin-primary-hover focus:!text-skin-primary-hover focus:outline-none',
85-
'id_prefix' => '',
86-
'symbol' => '#',
87-
'aria_hidden' => true,
88-
],
89-
90-
'mentions' => [
91-
'username' => [
92-
'prefix' => '@',
93-
'pattern' => '[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}(?!\w)',
94-
'generator' => config('app.url').'/user/%s',
95-
],
96-
],
97-
9894
/*
9995
|--------------------------------------------------------------------------
10096
| Commonmark Configuration

0 commit comments

Comments
 (0)