Skip to content

Commit

Permalink
[master] Allows to have two snippets (#318)
Browse files Browse the repository at this point in the history
* Allows to have two snippets

* Compile Assets

---------

Co-authored-by: nunomaduro <nunomaduro@users.noreply.github.com>
  • Loading branch information
nunomaduro and nunomaduro authored Jan 31, 2024
1 parent 593ef2c commit a07aac8
Show file tree
Hide file tree
Showing 7 changed files with 880 additions and 610 deletions.
2 changes: 2 additions & 0 deletions app/Markdown/GithubFlavoredMarkdownConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use League\CommonMark\Environment\Environment;
use App\Markdown\GithubFlavoredMarkdownExtension;
use Torchlight\Commonmark\V2\TorchlightExtension;
use Laravel\Unfenced\UnfencedExtension;
use League\CommonMark\Environment\EnvironmentInterface;
use League\CommonMark\Extension\Attributes\AttributesExtension;
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
Expand All @@ -25,6 +26,7 @@ public function __construct(array $config = [])
$environment = new Environment($config);
$environment->addExtension(new CommonMarkCoreExtension());
$environment->addExtension(new GithubFlavoredMarkdownExtension());
$environment->addExtension(new UnfencedExtension());
$environment->addExtension(new AttributesExtension());
$environment->addExtension(new TorchlightExtension());

Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.0",
"laravel/tinker": "^2.8",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"laravel/unfenced": "dev-main",
"spatie/laravel-sitemap": "^6.0",
"symfony/browser-kit": "^6.0",
"torchlight/torchlight-commonmark": "^0.5.2",
Expand All @@ -24,6 +25,12 @@
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:laravel-labs/unfenced.git"
}
],
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
Expand Down
Loading

0 comments on commit a07aac8

Please sign in to comment.