|
10 | 10 | * For the full copyright and license information, please view the LICENSE
|
11 | 11 | * file that was distributed with this source code.
|
12 | 12 | */
|
13 |
| -use League\CommonMark\Extension\Attributes\AttributesExtension; |
14 | 13 | use League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkExtension;
|
15 | 14 | use League\CommonMark\Extension\Mention\MentionExtension;
|
16 |
| -use League\CommonMark\Extension\TableOfContents\TableOfContentsExtension; |
17 | 15 | use Torchlight\Commonmark\V2\TorchlightExtension;
|
18 | 16 |
|
19 | 17 | return [
|
|
54 | 52 | League\CommonMark\Extension\Table\TableExtension::class,
|
55 | 53 | HeadingPermalinkExtension::class,
|
56 | 54 | MentionExtension::class,
|
57 |
| - AttributesExtension::class, |
58 | 55 | 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 | + ], |
60 | 71 | ],
|
61 | 72 |
|
62 | 73 | /*
|
|
80 | 91 | 'soft_break' => "\n",
|
81 | 92 | ],
|
82 | 93 |
|
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 |
| - |
98 | 94 | /*
|
99 | 95 | |--------------------------------------------------------------------------
|
100 | 96 | | Commonmark Configuration
|
|
0 commit comments