feat(markdown): add spatie/laravel-markdown for enhanced markdown rendering and code highlighting

This commit is contained in:
fsociety
2024-10-23 18:29:02 +02:00
parent c6b3593341
commit 9016663929
6 changed files with 597 additions and 6 deletions

203
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "84d9debf7e9e72bf3e450a771225396d",
"content-hash": "84b5a6a420aba2ae3bf94bad89b46a41",
"packages": [
{
"name": "akuechler/laravel-geoly",
@@ -6127,6 +6127,66 @@
},
"time": "2024-01-09T14:57:04+00:00"
},
{
"name": "spatie/commonmark-shiki-highlighter",
"version": "2.4.0",
"source": {
"type": "git",
"url": "https://github.com/spatie/commonmark-shiki-highlighter.git",
"reference": "3dd337649d87a9b264838320a07a89d22e75d41b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/commonmark-shiki-highlighter/zipball/3dd337649d87a9b264838320a07a89d22e75d41b",
"reference": "3dd337649d87a9b264838320a07a89d22e75d41b",
"shasum": ""
},
"require": {
"league/commonmark": "^2.4.2",
"php": "^8.0",
"spatie/shiki-php": "^2.0",
"symfony/process": "^6.0|^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19|^v3.49.0",
"phpunit/phpunit": "^9.5",
"spatie/phpunit-snapshot-assertions": "^4.2.7",
"spatie/ray": "^1.28"
},
"type": "commonmark-extension",
"autoload": {
"psr-4": {
"Spatie\\CommonMarkShikiHighlighter\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"role": "Developer"
}
],
"description": "Highlight code blocks with league/commonmark and Shiki",
"homepage": "https://github.com/spatie/commonmark-shiki-highlighter",
"keywords": [
"commonmark-shiki-highlighter",
"spatie"
],
"support": {
"source": "https://github.com/spatie/commonmark-shiki-highlighter/tree/2.4.0"
},
"funding": [
{
"url": "https://github.com/spatie",
"type": "github"
}
],
"time": "2024-04-11T12:12:10+00:00"
},
{
"name": "spatie/eloquent-sortable",
"version": "4.4.0",
@@ -6411,6 +6471,82 @@
],
"time": "2024-03-14T09:50:35+00:00"
},
{
"name": "spatie/laravel-markdown",
"version": "2.5.2",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-markdown.git",
"reference": "66660b21cbc8e50c6129cfe9fac4d96beac8f8e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-markdown/zipball/66660b21cbc8e50c6129cfe9fac4d96beac8f8e5",
"reference": "66660b21cbc8e50c6129cfe9fac4d96beac8f8e5",
"shasum": ""
},
"require": {
"illuminate/cache": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/view": "^9.0|^10.0|^11.0",
"league/commonmark": "^2.4.2",
"php": "^8.1",
"spatie/commonmark-shiki-highlighter": "^2.3",
"spatie/laravel-package-tools": "^1.4.3"
},
"require-dev": {
"brianium/paratest": "^6.2",
"nunomaduro/collision": "^5.3|^6.0",
"orchestra/testbench": "^6.15|^7.0|^8.0",
"pestphp/pest": "^1.22",
"phpunit/phpunit": "^9.3",
"spatie/laravel-ray": "^1.23",
"spatie/pest-plugin-snapshots": "^1.1",
"vimeo/psalm": "^4.8"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Spatie\\LaravelMarkdown\\MarkdownServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Spatie\\LaravelMarkdown\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"role": "Developer"
}
],
"description": "A highly configurable markdown renderer and Blade component for Laravel",
"homepage": "https://github.com/spatie/laravel-markdown",
"keywords": [
"Laravel-Markdown",
"laravel",
"spatie"
],
"support": {
"source": "https://github.com/spatie/laravel-markdown/tree/2.5.2"
},
"funding": [
{
"url": "https://github.com/spatie",
"type": "github"
}
],
"time": "2024-04-22T14:16:23+00:00"
},
{
"name": "spatie/laravel-medialibrary",
"version": "11.9.2",
@@ -6791,6 +6927,71 @@
],
"time": "2024-07-24T14:26:27+00:00"
},
{
"name": "spatie/shiki-php",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/spatie/shiki-php.git",
"reference": "dc2305e2f96420219b741c70df86d6f452f15688"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/shiki-php/zipball/dc2305e2f96420219b741c70df86d6f452f15688",
"reference": "dc2305e2f96420219b741c70df86d6f452f15688",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "^7.4|^8.0",
"symfony/process": "^5.4|^6.4|^7.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.0",
"pestphp/pest": "^1.8",
"phpunit/phpunit": "^9.5",
"spatie/pest-plugin-snapshots": "^1.1",
"spatie/ray": "^1.10"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\ShikiPhp\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Rias Van der Veken",
"email": "rias@spatie.be",
"role": "Developer"
},
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"role": "Developer"
}
],
"description": "Highlight code using Shiki in PHP",
"homepage": "https://github.com/spatie/shiki-php",
"keywords": [
"shiki",
"spatie"
],
"support": {
"source": "https://github.com/spatie/shiki-php/tree/2.1.0"
},
"funding": [
{
"url": "https://github.com/spatie",
"type": "github"
}
],
"time": "2024-09-29T17:24:24+00:00"
},
{
"name": "spatie/temporary-directory",
"version": "2.2.1",