arkecosystem / commonmark
CommonMark for internal Laravel Projects. Powered by league/commonmark.
Installs: 41 536
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- arkecosystem/ui: ^5.0
- calebporzio/sushi: ^2.1
- graham-campbell/markdown: ^13.1
- illuminate/support: ^8.28
- league/commonmark: ^1.5
- spatie/regex: ^2.0
- spatie/yaml-front-matter: ^2.0
- unicorn-fail/emoji: 1.0.x-dev
Requires (Dev)
- arkecosystem/stan: ^3.3
- guzzlehttp/guzzle: ^7.3
README
CommonMark for Laravel. Powered by league/commonmark.
Installation
- Require with composer:
composer require arkecosystem/commonmark
- Publish all the assets / views with
php artisan vendor:publish --provider="ARKEcosystem\CommonMark\CommonMarkServiceProvider" --tag=config
. - Disable auto-discovery for all fortify packages. This step is required so that we can control the loading order of
graham-campbell/markdown
andarkecosystem/commonmark
.
"extra": { "laravel": { "dont-discover": ["arkecosystem/commonmark", "graham-campbell/markdown"] } },
- Register the service providers in this exact order. This will ensure that our package can overwrite any bindings that
graham-campbell/markdown
created.
GrahamCampbell\Markdown\MarkdownServiceProvider::class, ARKEcosystem\CommonMark\CommonMarkServiceProvider::class,
Usage
This package provides parsing and rendering for CommonMark. All the specifications and examples can be seen at https://commonmark.org/. There are a few custom elements that can be used to embed third-party content.
Embed SimpleCast
![](simplecast:0275fefa-b0e5-4558-b876-09deb95386e6)
Embed Twitter
![](twitter:laravelnews/status/1315392740537044995)
Embed YouTube
![](youtube:Mb-oVVctwyc)