use in-tree copy of Parsedown instead of composer-installed
This commit is contained in:
parent
842f797e07
commit
9519cc23b7
@ -1,8 +1,5 @@
|
||||
{
|
||||
"require": {
|
||||
"gch1p/parsedown-highlight": "master",
|
||||
"gch1p/parsedown-highlight-extended": "dev-main",
|
||||
"erusev/parsedown": "1.8.0-beta-7",
|
||||
"gigablah/sphinxphp": "2.0.*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-gd": "*",
|
||||
@ -11,24 +8,15 @@
|
||||
"ext-yaml": "*",
|
||||
"ext-gmp": "*",
|
||||
"ext-memcached": "*",
|
||||
"samdark/sitemap": "^2.1",
|
||||
"samdark/sitemap": "^2.1",
|
||||
"twig/twig": "^3.0"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"url": "https://github.com/gch1p/parsedown-highlight",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/gch1p/ParsedownHighlightExtended",
|
||||
"type": "git"
|
||||
}
|
||||
],
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"preferred-install": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"thirdparty\\": "src/thirdparty",
|
||||
"engine\\": "src/engine",
|
||||
"app\\": "src/lib",
|
||||
"app\\foreignone\\": [
|
||||
|
288
composer.lock
generated
288
composer.lock
generated
@ -4,212 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d75fee72f82dcd543f7ac9fd20971de8",
|
||||
"content-hash": "d7b8938d922dae7a99e858b59cc06654",
|
||||
"packages": [
|
||||
{
|
||||
"name": "erusev/parsedown",
|
||||
"version": "1.8.0-beta-7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erusev/parsedown.git",
|
||||
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/erusev/parsedown/zipball/fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
|
||||
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Parsedown": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Emanuil Rusev",
|
||||
"email": "hello@erusev.com",
|
||||
"homepage": "http://erusev.com"
|
||||
}
|
||||
],
|
||||
"description": "Parser for Markdown.",
|
||||
"homepage": "http://parsedown.org",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"parser"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/erusev/parsedown/issues",
|
||||
"source": "https://github.com/erusev/parsedown/tree/1.8.0-beta-7"
|
||||
},
|
||||
"time": "2019-03-17T18:47:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "erusev/parsedown-extra",
|
||||
"version": "0.8.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erusev/parsedown-extra.git",
|
||||
"reference": "91ac3ff98f0cea243bdccc688df43810f044dcef"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/erusev/parsedown-extra/zipball/91ac3ff98f0cea243bdccc688df43810f044dcef",
|
||||
"reference": "91ac3ff98f0cea243bdccc688df43810f044dcef",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"erusev/parsedown": "^1.7.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"ParsedownExtra": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Emanuil Rusev",
|
||||
"email": "hello@erusev.com",
|
||||
"homepage": "http://erusev.com"
|
||||
}
|
||||
],
|
||||
"description": "An extension of Parsedown that adds support for Markdown Extra.",
|
||||
"homepage": "https://github.com/erusev/parsedown-extra",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"markdown extra",
|
||||
"parsedown",
|
||||
"parser"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/erusev/parsedown-extra/issues",
|
||||
"source": "https://github.com/erusev/parsedown-extra/tree/0.8.x"
|
||||
},
|
||||
"time": "2019-12-30T23:20:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "gch1p/parsedown-highlight",
|
||||
"version": "dev-master",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/gch1p/parsedown-highlight",
|
||||
"reference": "d017545cc221f4becac0f7fc0570304ceabba846"
|
||||
},
|
||||
"require": {
|
||||
"erusev/parsedown": "1.8.0-beta-7",
|
||||
"erusev/parsedown-extra": "0.8.1",
|
||||
"php": ">=7.1",
|
||||
"scrivo/highlight.php": "^9.14"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.10",
|
||||
"larapack/dd": "^1.0",
|
||||
"phpunit/phpunit": "^6.0|^7.0",
|
||||
"sempro/phpunit-pretty-print": "^1.0"
|
||||
},
|
||||
"default-branch": true,
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"gch1p\\": "src"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
"phpunit"
|
||||
],
|
||||
"styles:lint": [
|
||||
"php-cs-fixer fix --dry-run --diff"
|
||||
],
|
||||
"styles:fix": [
|
||||
"php-cs-fixer fix"
|
||||
]
|
||||
},
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "TJ Miller",
|
||||
"email": "oss@tjmiller.co",
|
||||
"homepage": "https://tjmiller.co",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Server side code block rendering for Parsedown",
|
||||
"homepage": "https://github.com/gch1p/parsedown-highlight",
|
||||
"keywords": [
|
||||
"code",
|
||||
"markdown",
|
||||
"parsedown"
|
||||
],
|
||||
"time": "2023-03-01T22:25:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "gch1p/parsedown-highlight-extended",
|
||||
"version": "dev-main",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/gch1p/ParsedownHighlightExtended",
|
||||
"reference": "e2d9d7eae203680690d61877fbef2dc2df61dd0b"
|
||||
},
|
||||
"require": {
|
||||
"erusev/parsedown": "^1.8-beta-6",
|
||||
"erusev/parsedown-extra": "^0.8.0",
|
||||
"gch1p/parsedown-highlight": "master",
|
||||
"php": ">=7.2"
|
||||
},
|
||||
"default-branch": true,
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"ParsedownExtended": ""
|
||||
}
|
||||
},
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Benjamin Hoegh",
|
||||
"homepage": "https://github.com/benjaminhoegh"
|
||||
}
|
||||
],
|
||||
"description": "An extension for ParsedownHighlight.",
|
||||
"homepage": "https://github.com/gch1p/ParsedownHighlightExtended",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"markdown extended",
|
||||
"parsedown",
|
||||
"parsedown extended"
|
||||
],
|
||||
"time": "2023-03-01T22:30:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "gigablah/sphinxphp",
|
||||
"version": "2.0.8",
|
||||
@ -324,84 +120,6 @@
|
||||
],
|
||||
"time": "2023-11-01T08:41:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "scrivo/highlight.php",
|
||||
"version": "v9.18.1.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/scrivo/highlight.php.git",
|
||||
"reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/scrivo/highlight.php/zipball/850f4b44697a2552e892ffe71490ba2733c2fc6e",
|
||||
"reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": ">=5.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8|^5.7",
|
||||
"sabberworm/php-css-parser": "^8.3",
|
||||
"symfony/finder": "^2.8|^3.4|^5.4",
|
||||
"symfony/var-dumper": "^2.8|^3.4|^5.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "Allows highlighting code with unicode characters and supports language with unicode keywords"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"HighlightUtilities/functions.php"
|
||||
],
|
||||
"psr-0": {
|
||||
"Highlight\\": "",
|
||||
"HighlightUtilities\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Geert Bergman",
|
||||
"homepage": "http://www.scrivo.org/",
|
||||
"role": "Project Author"
|
||||
},
|
||||
{
|
||||
"name": "Vladimir Jimenez",
|
||||
"homepage": "https://allejo.io",
|
||||
"role": "Maintainer"
|
||||
},
|
||||
{
|
||||
"name": "Martin Folkers",
|
||||
"homepage": "https://twobrain.io",
|
||||
"role": "Contributor"
|
||||
}
|
||||
],
|
||||
"description": "Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js",
|
||||
"keywords": [
|
||||
"code",
|
||||
"highlight",
|
||||
"highlight.js",
|
||||
"highlight.php",
|
||||
"syntax"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/scrivo/highlight.php/issues",
|
||||
"source": "https://github.com/scrivo/highlight.php"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/allejo",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-12-17T21:53:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.5.1",
|
||||
@ -711,9 +429,7 @@
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "dev",
|
||||
"stability-flags": {
|
||||
"gch1p/parsedown-highlight-extended": 20
|
||||
},
|
||||
"stability-flags": {},
|
||||
"prefer-stable": true,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
|
@ -4,10 +4,9 @@ namespace app;
|
||||
|
||||
use app\foreignone\PostLanguage;
|
||||
use app\foreignone\Upload;
|
||||
use ParsedownExtended;
|
||||
|
||||
class MyParsedown
|
||||
extends ParsedownExtended
|
||||
extends \thirdparty\ParsedownExtended
|
||||
{
|
||||
protected array $options;
|
||||
|
||||
|
1755
src/thirdparty/Parsedown.php
vendored
Normal file
1755
src/thirdparty/Parsedown.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3704
src/thirdparty/ParsedownExtended.php
vendored
Normal file
3704
src/thirdparty/ParsedownExtended.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user