v1.2.3
This commit is contained in:
parent
80a2202d6e
commit
121c35737d
79 changed files with 1398 additions and 2198 deletions
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
|
@ -19,4 +19,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitc097ca862608a882f291ae6b935e271c::getLoader();
|
||||
return ComposerAutoloaderInit58fc5ab3eee1b67eedbe2aa42d9005e6::getLoader();
|
||||
|
|
|
|||
4
vendor/composer/autoload_classmap.php
vendored
4
vendor/composer/autoload_classmap.php
vendored
|
|
@ -366,7 +366,6 @@ return array(
|
|||
'Nette\\Utils\\AssertionException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\Callback' => $vendorDir . '/nette/utils/src/Utils/Callback.php',
|
||||
'Nette\\Utils\\DateTime' => $vendorDir . '/nette/utils/src/Utils/DateTime.php',
|
||||
'Nette\\Utils\\DateTimeImmutable' => $vendorDir . '/nette/utils/src/Utils/DateTimeImmutable.php',
|
||||
'Nette\\Utils\\FileInfo' => $vendorDir . '/nette/utils/src/Utils/FileInfo.php',
|
||||
'Nette\\Utils\\FileSystem' => $vendorDir . '/nette/utils/src/Utils/FileSystem.php',
|
||||
'Nette\\Utils\\Finder' => $vendorDir . '/nette/utils/src/Utils/Finder.php',
|
||||
|
|
@ -383,9 +382,6 @@ return array(
|
|||
'Nette\\Utils\\JsonException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\ObjectHelpers' => $vendorDir . '/nette/utils/src/Utils/ObjectHelpers.php',
|
||||
'Nette\\Utils\\Paginator' => $vendorDir . '/nette/utils/src/Utils/Paginator.php',
|
||||
'Nette\\Utils\\Process' => $vendorDir . '/nette/utils/src/Utils/Process.php',
|
||||
'Nette\\Utils\\ProcessFailedException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\ProcessTimeoutException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\Random' => $vendorDir . '/nette/utils/src/Utils/Random.php',
|
||||
'Nette\\Utils\\Reflection' => $vendorDir . '/nette/utils/src/Utils/Reflection.php',
|
||||
'Nette\\Utils\\ReflectionMethod' => $vendorDir . '/nette/utils/src/Utils/ReflectionMethod.php',
|
||||
|
|
|
|||
2
vendor/composer/autoload_psr4.php
vendored
2
vendor/composer/autoload_psr4.php
vendored
|
|
@ -8,7 +8,7 @@ $baseDir = dirname($vendorDir);
|
|||
return array(
|
||||
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
|
||||
'Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'),
|
||||
'Nette\\' => array($vendorDir . '/nette/schema/src', $vendorDir . '/nette/utils/src'),
|
||||
'Nette\\' => array($vendorDir . '/nette/utils/src'),
|
||||
'League\\Config\\' => array($vendorDir . '/league/config/src'),
|
||||
'League\\CommonMark\\' => array($vendorDir . '/league/commonmark/src'),
|
||||
'Dflydev\\DotAccessData\\' => array($vendorDir . '/dflydev/dot-access-data/src'),
|
||||
|
|
|
|||
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitc097ca862608a882f291ae6b935e271c
|
||||
class ComposerAutoloaderInit58fc5ab3eee1b67eedbe2aa42d9005e6
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
|
@ -24,16 +24,16 @@ class ComposerAutoloaderInitc097ca862608a882f291ae6b935e271c
|
|||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc097ca862608a882f291ae6b935e271c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit58fc5ab3eee1b67eedbe2aa42d9005e6', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc097ca862608a882f291ae6b935e271c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit58fc5ab3eee1b67eedbe2aa42d9005e6', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc097ca862608a882f291ae6b935e271c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6::getInitializer($loader));
|
||||
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitc097ca862608a882f291ae6b935e271c::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
|||
15
vendor/composer/autoload_static.php
vendored
15
vendor/composer/autoload_static.php
vendored
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitc097ca862608a882f291ae6b935e271c
|
||||
class ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6
|
||||
{
|
||||
public static $files = array (
|
||||
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
||||
|
|
@ -46,8 +46,7 @@ class ComposerStaticInitc097ca862608a882f291ae6b935e271c
|
|||
),
|
||||
'Nette\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/nette/schema/src',
|
||||
1 => __DIR__ . '/..' . '/nette/utils/src',
|
||||
0 => __DIR__ . '/..' . '/nette/utils/src',
|
||||
),
|
||||
'League\\Config\\' =>
|
||||
array (
|
||||
|
|
@ -424,7 +423,6 @@ class ComposerStaticInitc097ca862608a882f291ae6b935e271c
|
|||
'Nette\\Utils\\AssertionException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\Callback' => __DIR__ . '/..' . '/nette/utils/src/Utils/Callback.php',
|
||||
'Nette\\Utils\\DateTime' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTime.php',
|
||||
'Nette\\Utils\\DateTimeImmutable' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTimeImmutable.php',
|
||||
'Nette\\Utils\\FileInfo' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileInfo.php',
|
||||
'Nette\\Utils\\FileSystem' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileSystem.php',
|
||||
'Nette\\Utils\\Finder' => __DIR__ . '/..' . '/nette/utils/src/Utils/Finder.php',
|
||||
|
|
@ -441,9 +439,6 @@ class ComposerStaticInitc097ca862608a882f291ae6b935e271c
|
|||
'Nette\\Utils\\JsonException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\ObjectHelpers' => __DIR__ . '/..' . '/nette/utils/src/Utils/ObjectHelpers.php',
|
||||
'Nette\\Utils\\Paginator' => __DIR__ . '/..' . '/nette/utils/src/Utils/Paginator.php',
|
||||
'Nette\\Utils\\Process' => __DIR__ . '/..' . '/nette/utils/src/Utils/Process.php',
|
||||
'Nette\\Utils\\ProcessFailedException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\ProcessTimeoutException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
|
||||
'Nette\\Utils\\Random' => __DIR__ . '/..' . '/nette/utils/src/Utils/Random.php',
|
||||
'Nette\\Utils\\Reflection' => __DIR__ . '/..' . '/nette/utils/src/Utils/Reflection.php',
|
||||
'Nette\\Utils\\ReflectionMethod' => __DIR__ . '/..' . '/nette/utils/src/Utils/ReflectionMethod.php',
|
||||
|
|
@ -466,9 +461,9 @@ class ComposerStaticInitc097ca862608a882f291ae6b935e271c
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc097ca862608a882f291ae6b935e271c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc097ca862608a882f291ae6b935e271c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc097ca862608a882f291ae6b935e271c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit58fc5ab3eee1b67eedbe2aa42d9005e6::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
|||
103
vendor/composer/installed.json
vendored
103
vendor/composer/installed.json
vendored
|
|
@ -80,17 +80,17 @@
|
|||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
"version": "2.10.0",
|
||||
"version_normalized": "2.10.0.0",
|
||||
"version": "2.10.7",
|
||||
"version_normalized": "2.10.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/commonmark.git",
|
||||
"reference": "d2d1aa8b35e072966c89bc0c66cf926e56767dc4"
|
||||
"reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d2d1aa8b35e072966c89bc0c66cf926e56767dc4",
|
||||
"reference": "d2d1aa8b35e072966c89bc0c66cf926e56767dc4",
|
||||
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/8eb53e906fd60c67038d22f1f1cab420ed58b8be",
|
||||
"reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -124,7 +124,7 @@
|
|||
"suggest": {
|
||||
"symfony/yaml": "v2.3+ required if using the Front Matter extension"
|
||||
},
|
||||
"time": "2026-08-11T16:06:25+00:00",
|
||||
"time": "2026-10-31T13:35:37+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
|
@ -275,42 +275,37 @@
|
|||
},
|
||||
{
|
||||
"name": "nette/schema",
|
||||
"version": "v1.3.6",
|
||||
"version_normalized": "1.3.6.0",
|
||||
"version": "v1.2.5",
|
||||
"version_normalized": "1.2.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nette/schema.git",
|
||||
"reference": "c54350438cd6914616f790a49cb424605f421562"
|
||||
"reference": "0462f0166e823aad657c9224d0f849ecac1ba10a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nette/schema/zipball/c54350438cd6914616f790a49cb424605f421562",
|
||||
"reference": "c54350438cd6914616f790a49cb424605f421562",
|
||||
"url": "https://api.github.com/repos/nette/schema/zipball/0462f0166e823aad657c9224d0f849ecac1ba10a",
|
||||
"reference": "0462f0166e823aad657c9224d0f849ecac1ba10a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"nette/utils": "^4.0",
|
||||
"php": "8.1 - 8.5"
|
||||
"nette/utils": "^2.5.7 || ^3.1.5 || ^4.0",
|
||||
"php": "7.1 - 8.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"nette/phpstan-rules": "^1.0",
|
||||
"nette/tester": "^2.6",
|
||||
"phpstan/extension-installer": "^1.4@stable",
|
||||
"phpstan/phpstan": "^2.1.39@stable",
|
||||
"tracy/tracy": "^2.8"
|
||||
"nette/tester": "^2.3 || ^2.4",
|
||||
"phpstan/phpstan-nette": "^1.0",
|
||||
"tracy/tracy": "^2.7"
|
||||
},
|
||||
"time": "2026-08-16T21:58:41+00:00",
|
||||
"time": "2023-10-05T20:37:59+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.3-dev"
|
||||
"dev-master": "1.2-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Nette\\": "src"
|
||||
},
|
||||
"classmap": [
|
||||
"src/"
|
||||
]
|
||||
|
|
@ -339,27 +334,27 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nette/schema/issues",
|
||||
"source": "https://github.com/nette/schema/tree/v1.3.6"
|
||||
"source": "https://github.com/nette/schema/tree/v1.2.5"
|
||||
},
|
||||
"install-path": "../nette/schema"
|
||||
},
|
||||
{
|
||||
"name": "nette/utils",
|
||||
"version": "v4.1.5",
|
||||
"version_normalized": "4.1.5.0",
|
||||
"version": "v4.0.11",
|
||||
"version_normalized": "4.0.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nette/utils.git",
|
||||
"reference": "b043439dbdf954e6c28b5ea7e34b0100f83165e0"
|
||||
"reference": "c9958d457077885860569245ffbf66f8131f36cb"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/b043439dbdf954e6c28b5ea7e34b0100f83165e0",
|
||||
"reference": "b043439dbdf954e6c28b5ea7e34b0100f83165e0",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/c9958d457077885860569245ffbf66f8131f36cb",
|
||||
"reference": "c9958d457077885860569245ffbf66f8131f36cb",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "8.2 - 8.5"
|
||||
"php": "8.0 - 8.6"
|
||||
},
|
||||
"conflict": {
|
||||
"nette/finder": "<3",
|
||||
|
|
@ -367,25 +362,23 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"jetbrains/phpstorm-attributes": "^1.2",
|
||||
"nette/phpstan-rules": "^1.0",
|
||||
"nette/tester": "^2.5",
|
||||
"phpstan/extension-installer": "^1.4@stable",
|
||||
"phpstan/phpstan": "^2.1@stable",
|
||||
"phpstan/phpstan-nette": "^2.0@stable",
|
||||
"tracy/tracy": "^2.9"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "to use Image",
|
||||
"ext-iconv": "to use Strings::chr(), ord() and reverse()",
|
||||
"ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()",
|
||||
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
|
||||
"ext-json": "to use Nette\\Utils\\Json",
|
||||
"ext-mbstring": "to use Strings::lower() etc...",
|
||||
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
|
||||
},
|
||||
"time": "2026-07-17T23:02:45+00:00",
|
||||
"time": "2026-10-21T16:50:30+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.1-dev"
|
||||
"dev-master": "4.0-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
|
|
@ -433,7 +426,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nette/utils/issues",
|
||||
"source": "https://github.com/nette/utils/tree/v4.1.5"
|
||||
"source": "https://github.com/nette/utils/tree/v4.0.11"
|
||||
},
|
||||
"install-path": "../nette/utils"
|
||||
},
|
||||
|
|
@ -492,23 +485,23 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.7.1",
|
||||
"version_normalized": "3.7.1.0",
|
||||
"version": "v3.0.2",
|
||||
"version_normalized": "3.0.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d"
|
||||
"reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d",
|
||||
"reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
|
||||
"reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.1"
|
||||
"php": ">=8.0.2"
|
||||
},
|
||||
"time": "2026-06-05T06:23:12+00:00",
|
||||
"time": "2022-01-02T09:55:41+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
|
|
@ -516,7 +509,7 @@
|
|||
"name": "symfony/contracts"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-main": "3.7-dev"
|
||||
"dev-main": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
|
|
@ -542,7 +535,7 @@
|
|||
"description": "A generic function and convention to trigger deprecation notices",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1"
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -553,10 +546,6 @@
|
|||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/nicolas-grekas",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
|
|
@ -566,23 +555,23 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php80",
|
||||
"version": "v1.37.0",
|
||||
"version_normalized": "1.37.0.0",
|
||||
"version": "v1.43.0",
|
||||
"version_normalized": "1.43.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||
"reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411"
|
||||
"reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411",
|
||||
"reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74",
|
||||
"reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2"
|
||||
},
|
||||
"time": "2026-04-10T16:19:22+00:00",
|
||||
"time": "2026-09-25T15:50:05+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
|
|
@ -629,7 +618,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0"
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.43.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
|
|||
30
vendor/composer/installed.php
vendored
30
vendor/composer/installed.php
vendored
|
|
@ -20,9 +20,9 @@
|
|||
'dev_requirement' => false,
|
||||
),
|
||||
'league/commonmark' => array(
|
||||
'pretty_version' => '2.10.0',
|
||||
'version' => '2.10.0.0',
|
||||
'reference' => 'd2d1aa8b35e072966c89bc0c66cf926e56767dc4',
|
||||
'pretty_version' => '2.10.7',
|
||||
'version' => '2.10.7.0',
|
||||
'reference' => '8eb53e906fd60c67038d22f1f1cab420ed58b8be',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../league/commonmark',
|
||||
'aliases' => array(),
|
||||
|
|
@ -38,18 +38,18 @@
|
|||
'dev_requirement' => false,
|
||||
),
|
||||
'nette/schema' => array(
|
||||
'pretty_version' => 'v1.3.6',
|
||||
'version' => '1.3.6.0',
|
||||
'reference' => 'c54350438cd6914616f790a49cb424605f421562',
|
||||
'pretty_version' => 'v1.2.5',
|
||||
'version' => '1.2.5.0',
|
||||
'reference' => '0462f0166e823aad657c9224d0f849ecac1ba10a',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../nette/schema',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'nette/utils' => array(
|
||||
'pretty_version' => 'v4.1.5',
|
||||
'version' => '4.1.5.0',
|
||||
'reference' => 'b043439dbdf954e6c28b5ea7e34b0100f83165e0',
|
||||
'pretty_version' => 'v4.0.11',
|
||||
'version' => '4.0.11.0',
|
||||
'reference' => 'c9958d457077885860569245ffbf66f8131f36cb',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../nette/utils',
|
||||
'aliases' => array(),
|
||||
|
|
@ -74,18 +74,18 @@
|
|||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/deprecation-contracts' => array(
|
||||
'pretty_version' => 'v3.7.1',
|
||||
'version' => '3.7.1.0',
|
||||
'reference' => 'f3202fa1b5097b0af062dc978b32ecf63404e31d',
|
||||
'pretty_version' => 'v3.0.2',
|
||||
'version' => '3.0.2.0',
|
||||
'reference' => '26954b3d62a6c5fd0ea8a2a00c0353a14978d05c',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/polyfill-php80' => array(
|
||||
'pretty_version' => 'v1.37.0',
|
||||
'version' => '1.37.0.0',
|
||||
'reference' => 'dfb55726c3a76ea3b6459fcfda1ec2d80a682411',
|
||||
'pretty_version' => 'v1.43.0',
|
||||
'version' => '1.43.0.0',
|
||||
'reference' => '9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
|
||||
'aliases' => array(),
|
||||
|
|
|
|||
4
vendor/composer/platform_check.php
vendored
4
vendor/composer/platform_check.php
vendored
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 80200)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.';
|
||||
if (!(PHP_VERSION_ID >= 80002)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.2". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
|
|
|
|||
59
vendor/league/commonmark/CHANGELOG.md
vendored
59
vendor/league/commonmark/CHANGELOG.md
vendored
|
|
@ -6,6 +6,56 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
|
|||
|
||||
## [Unreleased][unreleased]
|
||||
|
||||
## [2.10.7] - 2026-10-31
|
||||
|
||||
### Fixed
|
||||
- Fixed `AutolinkExtension` keeping trailing punctuation inside very long URLs containing long runs of punctuation, and removed the excessive regex backtracking that caused it (#1170)
|
||||
|
||||
## [2.10.6] - 2026-10-30
|
||||
|
||||
### Fixed
|
||||
- Fixed `ExternalLinkExtension` not treating some links as external when browsers would navigate to an external host, such as `https:///example.com`, `http:example.com`, or `///example.com`; hosts are now determined the way browsers do (#1169)
|
||||
|
||||
## [2.10.5] - 2026-10-30
|
||||
|
||||
### Fixed
|
||||
- Fixed link reference definitions keeping a partially parsed title when the title on the following line is never closed or is followed by other text; the definition now has no title, as the spec requires (#1162)
|
||||
- Fixed task list items being recognized when the `[ ]` or `[x]` marker is directly followed by other content (`- [x]done`); the GFM spec requires whitespace after the marker (#1164)
|
||||
- Fixed the content indentation of a list item whose content is a single character after two to four spaces (`- a`): it was computed as if one space followed the marker, so the next line could be read as part of the item, nesting a following item inside it (#1163)
|
||||
- Fixed a table inside a block quote or list item absorbing the lines that follow it as table rows when those lines are lazy continuation lines (not prefixed with `>` or indented); they now end the container as in GitHub's `cmark-gfm` (#1165)
|
||||
- Fixed link reference definitions accepting an unescaped `(` inside a parenthesized title (#1168)
|
||||
|
||||
## [2.10.4] - 2026-10-17
|
||||
|
||||
### Fixed
|
||||
- Fixed `HeadingPermalinkExtension` overwriting an `id` set on a heading by the `AttributesExtension` when `heading_permalink/apply_id_to_heading` is enabled; the existing `id` is now used (with the configured prefix) for both the heading and its permalink (#1159, #1160)
|
||||
- Fixed Symfony `DebugClassLoader` deprecation notice about `ArrayCollection::offsetGet()` by adding an explicit `@return` annotation (#1158)
|
||||
|
||||
## [2.10.3] - 2026-09-21
|
||||
|
||||
### Fixed
|
||||
- Fixed footnote links and backlinks pointing at the wrong anchor when `footnote/footnote_id_prefix` or `footnote/ref_id_prefix` contains an uppercase character; the configured prefix is now emitted verbatim in the `href` as it already was in the matching `id` (#524)
|
||||
- Fixed inline raw HTML tags being escaped when the tag name or an attribute name contains an uppercase letter, such as `<svg viewBox="...">` or `<Warning>` (#1096)
|
||||
|
||||
## [2.10.2] - 2026-09-21
|
||||
|
||||
This is a **security release** to address a denial of service vulnerability in the `Table` extension and a raw HTML filtering bypass in the `DisallowedRawHtml` extension.
|
||||
|
||||
### Changed
|
||||
- Improved performance of parsing table delimiter rows and splitting table rows into cells by scanning bytes directly instead of stepping a `Cursor` (roughly 4x faster for delimiter rows and 6x for cell splitting, and more on multibyte rows)
|
||||
|
||||
### Fixed
|
||||
- Fixed `DisallowedRawHtmlRenderer` not blocking raw HTML that ends with a disallowed tag name, such as a line containing only `<script` (GHSA-97jj-33gv-5xf9)
|
||||
- Fixed quadratic-time parsing of long paragraphs when the `Table` extension is enabled (GHSA-3q6v-r5mr-hxv8)
|
||||
- Fixed table detection to match the GFM spec and reference implementation:
|
||||
- Header rows no longer require a `|` character
|
||||
- Header rows must now have the same number of cells as the delimiter row (previously, fewer cells were accepted)
|
||||
|
||||
## [2.10.1] - 2026-09-07
|
||||
|
||||
### Fixed
|
||||
- Accept `unordered_list_markers` config in InlinesOnlyExtension (#1015, #1151)
|
||||
|
||||
## [2.10.0] - 2026-08-11
|
||||
|
||||
This is a **security release** to address a denial of service vulnerability in the `AttributesExtension`.
|
||||
|
|
@ -834,7 +884,14 @@ No changes were introduced since the previous release.
|
|||
- Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment
|
||||
- Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself
|
||||
|
||||
[unreleased]: https://github.com/thephpleague/commonmark/compare/2.10.0...HEAD
|
||||
[unreleased]: https://github.com/thephpleague/commonmark/compare/2.10.7...HEAD
|
||||
[2.10.7]: https://github.com/thephpleague/commonmark/compare/2.10.6...2.10.7
|
||||
[2.10.6]: https://github.com/thephpleague/commonmark/compare/2.10.5...2.10.6
|
||||
[2.10.5]: https://github.com/thephpleague/commonmark/compare/2.10.4...2.10.5
|
||||
[2.10.4]: https://github.com/thephpleague/commonmark/compare/2.10.3...2.10.4
|
||||
[2.10.3]: https://github.com/thephpleague/commonmark/compare/2.10.2...2.10.3
|
||||
[2.10.2]: https://github.com/thephpleague/commonmark/compare/2.10.1...2.10.2
|
||||
[2.10.1]: https://github.com/thephpleague/commonmark/compare/2.10.0...2.10.1
|
||||
[2.10.0]: https://github.com/thephpleague/commonmark/compare/2.9.2...2.10.0
|
||||
[2.9.2]: https://github.com/thephpleague/commonmark/compare/2.9.1...2.9.2
|
||||
[2.9.1]: https://github.com/thephpleague/commonmark/compare/2.9.0...2.9.1
|
||||
|
|
|
|||
2
vendor/league/commonmark/README.md
vendored
2
vendor/league/commonmark/README.md
vendored
|
|
@ -133,7 +133,7 @@ When a new **major** version is released (e.g. `1.6` -> `2.0`), the previous one
|
|||
|
||||
## 👷♀️ Contributing
|
||||
|
||||
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure with us.
|
||||
To report a security vulnerability, please see our [security policy](.github/SECURITY.md).
|
||||
|
||||
If you encounter a bug in the spec, please report it to the [CommonMark] project. Any resulting fix will eventually be implemented in this project as well.
|
||||
|
||||
|
|
|
|||
|
|
@ -107,13 +107,8 @@ final class UrlAutolinkParser implements InlineParserInterface
|
|||
return false;
|
||||
}
|
||||
|
||||
$url = $matches[0];
|
||||
|
||||
// Does the URL end with punctuation that should be stripped?
|
||||
if (\preg_match('/(.+?)([?!.,:*_~]+)$/', $url, $matches)) {
|
||||
// Add the punctuation later
|
||||
$url = $matches[1];
|
||||
}
|
||||
// Strip trailing punctuation; it's left on the cursor to be parsed as text
|
||||
$url = \rtrim($matches[0], '?!.,:*_~');
|
||||
|
||||
// Does the URL end with something that looks like an entity reference?
|
||||
if (\preg_match('/(.+)(&[A-Za-z0-9]+;)$/', $url, $matches)) {
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ final class ListBlockStartParser implements BlockStartParserInterface, Configura
|
|||
}
|
||||
}
|
||||
|
||||
$blankItem = $cursor->peek() === null;
|
||||
$blankItem = $cursor->isAtEnd();
|
||||
$spacesAfterMarker = $cursor->getColumn() - $spacesStartCol;
|
||||
|
||||
if ($spacesAfterMarker >= 5 || $spacesAfterMarker < 1 || $blankItem) {
|
||||
|
|
|
|||
|
|
@ -45,9 +45,11 @@ final class DisallowedRawHtmlRenderer implements NodeRendererInterface, Configur
|
|||
return $rendered;
|
||||
}
|
||||
|
||||
$regex = \sprintf('/<(\/?(?:%s)[\s\/>])/i', \implode('|', \array_map('preg_quote', $tags)));
|
||||
// The tag name may also end the rendered HTML: the block parser accepts a bare
|
||||
// `<script` line, and browsers treat the following block as its attributes.
|
||||
$regex = \sprintf('/<(\/?(?:%s)(?:[\s\/>]|$))/i', \implode('|', \array_map('preg_quote', $tags)));
|
||||
|
||||
// Match these types of tags: <title> </title> <title x="sdf"> <title/> <title />
|
||||
// Match these types of tags: <title> </title> <title x="sdf"> <title/> <title /> <title
|
||||
return \preg_replace($regex, '<$1', $rendered);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ final class ExternalLinkProcessor
|
|||
continue;
|
||||
}
|
||||
|
||||
$host = \parse_url($link->getUrl(), PHP_URL_HOST);
|
||||
if (! \is_string($host)) {
|
||||
// Something is terribly wrong with this URL
|
||||
$host = self::getHost($link->getUrl());
|
||||
if ($host === null) {
|
||||
// Relative links and non-network schemes like mailto: have no host to compare
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -97,6 +97,28 @@ final class ExternalLinkProcessor
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines which host a browser would navigate to, which parse_url() doesn't always agree with
|
||||
* on its own (for example, it finds no host in "https:///example.com" or "///example.com")
|
||||
*/
|
||||
private static function getHost(string $url): ?string
|
||||
{
|
||||
// Browsers ignore these characters, so links not created by the parser could use them to obscure the host
|
||||
$url = \str_replace(["\t", "\n", "\r"], '', \trim($url, "\x00..\x20"));
|
||||
|
||||
// For these "special" schemes (and scheme-relative URLs), browsers accept any number of slashes before the
|
||||
// host, even none, and treat "\" like "/". parse_url() needs exactly "//", so we rewrite the URL to match.
|
||||
// Without slashes ("https:example.com") a browser may instead resolve the URL relative to the current page,
|
||||
// but we can't know the page's scheme, so we assume the worst and treat it as a host.
|
||||
if (\preg_match('~^(?:(?:https?|ftp|wss?):|(?=[/\\\\]{2}))~i', $url, $matches) === 1) {
|
||||
$url = '//' . \ltrim(\strtr(\substr($url, \strlen($matches[0])), '\\', '/'), '/');
|
||||
}
|
||||
|
||||
$host = \parse_url($url, PHP_URL_HOST);
|
||||
|
||||
return \is_string($host) && $host !== '' ? $host : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal This method is only public so we can easily test it. DO NOT USE THIS OUTSIDE OF THIS EXTENSION!
|
||||
*
|
||||
|
|
|
|||
|
|
@ -44,7 +44,13 @@ final class FootnoteBackrefRenderer implements NodeRendererInterface, XmlNodeRen
|
|||
|
||||
$attrs->append('class', $this->config->get('footnote/backref_class'));
|
||||
$attrs->set('rev', 'footnote');
|
||||
$attrs->set('href', \mb_strtolower($node->getReference()->getDestination(), 'UTF-8'));
|
||||
// The configured prefix is emitted verbatim in the target's id, so only lowercase the label.
|
||||
$destination = $node->getReference()->getDestination();
|
||||
$hrefPrefix = '#' . $this->config->get('footnote/ref_id_prefix');
|
||||
$href = \strncmp($destination, $hrefPrefix, \strlen($hrefPrefix)) === 0
|
||||
? $hrefPrefix . \mb_strtolower(\substr($destination, \strlen($hrefPrefix)), 'UTF-8')
|
||||
: \mb_strtolower($destination, 'UTF-8');
|
||||
$attrs->set('href', $href);
|
||||
$attrs->set('role', 'doc-backlink');
|
||||
|
||||
$symbol = $this->config->get('footnote/backref_symbol');
|
||||
|
|
|
|||
|
|
@ -40,7 +40,13 @@ final class FootnoteRefRenderer implements NodeRendererInterface, XmlNodeRendere
|
|||
|
||||
$attrs = $node->data->getData('attributes');
|
||||
$attrs->append('class', $this->config->get('footnote/ref_class'));
|
||||
$attrs->set('href', \mb_strtolower($node->getReference()->getDestination(), 'UTF-8'));
|
||||
// The configured prefix is emitted verbatim in the target's id, so only lowercase the label.
|
||||
$destination = $node->getReference()->getDestination();
|
||||
$hrefPrefix = '#' . $this->config->get('footnote/footnote_id_prefix');
|
||||
$href = \strncmp($destination, $hrefPrefix, \strlen($hrefPrefix)) === 0
|
||||
? $hrefPrefix . \mb_strtolower(\substr($destination, \strlen($hrefPrefix)), 'UTF-8')
|
||||
: \mb_strtolower($destination, 'UTF-8');
|
||||
$attrs->set('href', $href);
|
||||
$attrs->set('role', 'doc-noteref');
|
||||
|
||||
$idPrefix = $this->config->get('footnote/ref_id_prefix');
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ final class HeadingPermalinkProcessor implements EnvironmentAwareInterface
|
|||
]);
|
||||
|
||||
if ($applyToHeading) {
|
||||
if ($heading->data->has('attributes/id')) {
|
||||
$slug = $heading->data->get('attributes/id');
|
||||
}
|
||||
|
||||
$heading->data->set('attributes/id', $idPrefix . $slug);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ final class InlinesOnlyExtension implements ConfigurableExtensionInterface
|
|||
'use_underscore' => Expect::bool(true),
|
||||
'enable_strong' => Expect::bool(true),
|
||||
'enable_em' => Expect::bool(true),
|
||||
'unordered_list_markers' => Expect::listOf('string')->min(1)->default(['*', '+', '-'])->mergeDefaults(false),
|
||||
]));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,13 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
|
||||
private int $remainingAutocompletedCells;
|
||||
|
||||
/**
|
||||
* Whether the current line may be added to the table as a lazy continuation line
|
||||
*
|
||||
* @psalm-readonly-allow-private-mutation
|
||||
*/
|
||||
private bool $canHaveLazyContinuationLines = false;
|
||||
|
||||
/**
|
||||
* @param array<int, string|null> $columns
|
||||
* @param array<int, string> $headerCells
|
||||
|
|
@ -80,7 +87,7 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
|
||||
public function canHaveLazyContinuationLines(): bool
|
||||
{
|
||||
return true;
|
||||
return $this->canHaveLazyContinuationLines;
|
||||
}
|
||||
|
||||
public function getBlock(): Table
|
||||
|
|
@ -90,7 +97,11 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
|
||||
public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue
|
||||
{
|
||||
if (\strpos($cursor->getLine(), '|') === false) {
|
||||
// A line without a pipe can still become a row via lazy continuation. This is only reached when all
|
||||
// enclosing containers matched; lines whose containers didn't match must not be added lazily.
|
||||
$this->canHaveLazyContinuationLines = \strpos($cursor->getLine(), '|') === false;
|
||||
|
||||
if ($this->canHaveLazyContinuationLines) {
|
||||
return BlockContinue::none();
|
||||
}
|
||||
|
||||
|
|
@ -99,6 +110,8 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
|
||||
public function addLine(string $line): void
|
||||
{
|
||||
$this->canHaveLazyContinuationLines = false;
|
||||
|
||||
if ($this->nextIsSeparatorLine) {
|
||||
$this->nextIsSeparatorLine = false;
|
||||
} else {
|
||||
|
|
@ -168,24 +181,28 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
*/
|
||||
public static function split(string $line): array
|
||||
{
|
||||
$cursor = new Cursor(\trim($line));
|
||||
// Scan raw bytes: the only significant characters are ASCII, and copying the other bytes through one at a
|
||||
// time reassembles multibyte sequences unchanged. This is several times faster than stepping a Cursor.
|
||||
$line = \trim($line);
|
||||
$length = \strlen($line);
|
||||
|
||||
if ($cursor->getCurrentCharacter() === '|') {
|
||||
$cursor->advanceBy(1);
|
||||
$i = 0;
|
||||
if ($length > 0 && $line[0] === '|') {
|
||||
$i = 1;
|
||||
}
|
||||
|
||||
$cells = [];
|
||||
$sb = '';
|
||||
|
||||
while (! $cursor->isAtEnd()) {
|
||||
switch ($c = $cursor->getCurrentCharacter()) {
|
||||
for (; $i < $length; $i++) {
|
||||
switch ($c = $line[$i]) {
|
||||
case '\\':
|
||||
if ($cursor->peek() === '|') {
|
||||
if ($i + 1 < $length && $line[$i + 1] === '|') {
|
||||
// Pipe is special for table parsing. An escaped pipe doesn't result in a new cell, but is
|
||||
// passed down to inline parsing as an unescaped pipe. Note that that applies even for the `\|`
|
||||
// in an input like `\\|` - in other words, table parsing doesn't support escaping backslashes.
|
||||
$sb .= '|';
|
||||
$cursor->advanceBy(1);
|
||||
$i++;
|
||||
} else {
|
||||
// Preserve backslash before other characters or at end of line.
|
||||
$sb .= '\\';
|
||||
|
|
@ -199,8 +216,6 @@ final class TableParser extends AbstractBlockContinueParser implements BlockCont
|
|||
default:
|
||||
$sb .= $c;
|
||||
}
|
||||
|
||||
$cursor->advanceBy(1);
|
||||
}
|
||||
|
||||
if ($sb !== '') {
|
||||
|
|
|
|||
|
|
@ -33,10 +33,12 @@ final class TableStartParser implements BlockStartParserInterface
|
|||
public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): ?BlockStart
|
||||
{
|
||||
$paragraph = $parserState->getParagraphContent();
|
||||
if ($paragraph === null || \strpos($paragraph, '|') === false) {
|
||||
if ($paragraph === null) {
|
||||
return BlockStart::none();
|
||||
}
|
||||
|
||||
// Check the (short) current line for a delimiter row before touching the paragraph content. Scanning the
|
||||
// paragraph on every line would be quadratic, and GFM does not require a pipe in the header row anyway.
|
||||
$columns = self::parseSeparator($cursor);
|
||||
if (\count($columns) === 0) {
|
||||
return BlockStart::none();
|
||||
|
|
@ -45,8 +47,9 @@ final class TableStartParser implements BlockStartParserInterface
|
|||
$lastLineBreak = \strrpos($paragraph, "\n");
|
||||
$lastLine = $lastLineBreak === false ? $paragraph : \substr($paragraph, $lastLineBreak + 1);
|
||||
|
||||
// Per the GFM spec, the header row must have the same number of cells as the delimiter row
|
||||
$headerCells = TableParser::split($lastLine);
|
||||
if (\count($headerCells) > \count($columns)) {
|
||||
if (\count($headerCells) !== \count($columns)) {
|
||||
return BlockStart::none();
|
||||
}
|
||||
|
||||
|
|
@ -76,14 +79,20 @@ final class TableStartParser implements BlockStartParserInterface
|
|||
*/
|
||||
private static function parseSeparator(Cursor $cursor): array
|
||||
{
|
||||
// Scan the raw bytes rather than stepping the Cursor: every character allowed in a delimiter row is ASCII,
|
||||
// so any multibyte character is simply invalid, and byte indexing avoids the per-character method calls
|
||||
// (and, on multibyte lines, the character-to-byte offset translation) that the Cursor incurs.
|
||||
$line = $cursor->getRemainder();
|
||||
$length = \strlen($line);
|
||||
|
||||
$columns = [];
|
||||
$pipes = 0;
|
||||
$valid = false;
|
||||
|
||||
while (! $cursor->isAtEnd()) {
|
||||
switch ($c = $cursor->getCurrentCharacter()) {
|
||||
for ($i = 0; $i < $length;) {
|
||||
switch ($c = $line[$i]) {
|
||||
case '|':
|
||||
$cursor->advanceBy(1);
|
||||
$i++;
|
||||
$pipes++;
|
||||
if ($pipes > 1) {
|
||||
// More than one adjacent pipe not allowed
|
||||
|
|
@ -104,17 +113,20 @@ final class TableStartParser implements BlockStartParserInterface
|
|||
$right = false;
|
||||
if ($c === ':') {
|
||||
$left = true;
|
||||
$cursor->advanceBy(1);
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($cursor->matchInPlace('/\G-+/') === null) {
|
||||
$dashes = \strspn($line, '-', $i);
|
||||
if ($dashes === 0) {
|
||||
// Need at least one dash
|
||||
return [];
|
||||
}
|
||||
|
||||
if ($cursor->getCurrentCharacter() === ':') {
|
||||
$i += $dashes;
|
||||
|
||||
if ($i < $length && $line[$i] === ':') {
|
||||
$right = true;
|
||||
$cursor->advanceBy(1);
|
||||
$i++;
|
||||
}
|
||||
|
||||
$columns[] = self::getAlignment($left, $right);
|
||||
|
|
@ -124,7 +136,7 @@ final class TableStartParser implements BlockStartParserInterface
|
|||
case ' ':
|
||||
case "\t":
|
||||
// White space is allowed between pipes and columns
|
||||
$cursor->advanceToNextNonSpaceOrTab();
|
||||
$i += \strspn($line, " \t", $i);
|
||||
break;
|
||||
default:
|
||||
// Any other character is invalid
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue