Merge branch 'cherry-pick-e4336578' into 'dev'
composer update vendor/league/html-to-markdown/.github/ See merge request hubzilla/core!1734
This commit is contained in:
commit
1e924a8530
22
composer.lock
generated
22
composer.lock
generated
@ -251,16 +251,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/html-to-markdown",
|
"name": "league/html-to-markdown",
|
||||||
"version": "4.8.1",
|
"version": "4.8.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/html-to-markdown.git",
|
"url": "https://github.com/thephpleague/html-to-markdown.git",
|
||||||
"reference": "250d1bf45f80d15594fb6b316df777d6d4c97ad1"
|
"reference": "e747489191f8e9144a7270eb61f8b9516e99e413"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/250d1bf45f80d15594fb6b316df777d6d4c97ad1",
|
"url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/e747489191f8e9144a7270eb61f8b9516e99e413",
|
||||||
"reference": "250d1bf45f80d15594fb6b316df777d6d4c97ad1",
|
"reference": "e747489191f8e9144a7270eb61f8b9516e99e413",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -292,17 +292,17 @@
|
|||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
|
||||||
"name": "Nick Cernis",
|
|
||||||
"email": "nick@cern.is",
|
|
||||||
"homepage": "http://modernnerd.net",
|
|
||||||
"role": "Original Author"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Colin O'Dell",
|
"name": "Colin O'Dell",
|
||||||
"email": "colinodell@gmail.com",
|
"email": "colinodell@gmail.com",
|
||||||
"homepage": "https://www.colinodell.com",
|
"homepage": "https://www.colinodell.com",
|
||||||
"role": "Lead Developer"
|
"role": "Lead Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nick Cernis",
|
||||||
|
"email": "nick@cern.is",
|
||||||
|
"homepage": "http://modernnerd.net",
|
||||||
|
"role": "Original Author"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "An HTML-to-markdown conversion helper for PHP",
|
"description": "An HTML-to-markdown conversion helper for PHP",
|
||||||
@ -311,7 +311,7 @@
|
|||||||
"html",
|
"html",
|
||||||
"markdown"
|
"markdown"
|
||||||
],
|
],
|
||||||
"time": "2018-12-24T17:21:44+00:00"
|
"time": "2019-08-02T11:57:39+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lukasreschke/id3parser",
|
"name": "lukasreschke/id3parser",
|
||||||
|
24
vendor/composer/installed.json
vendored
24
vendor/composer/installed.json
vendored
@ -254,17 +254,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/html-to-markdown",
|
"name": "league/html-to-markdown",
|
||||||
"version": "4.8.1",
|
"version": "4.8.2",
|
||||||
"version_normalized": "4.8.1.0",
|
"version_normalized": "4.8.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/html-to-markdown.git",
|
"url": "https://github.com/thephpleague/html-to-markdown.git",
|
||||||
"reference": "250d1bf45f80d15594fb6b316df777d6d4c97ad1"
|
"reference": "e747489191f8e9144a7270eb61f8b9516e99e413"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/250d1bf45f80d15594fb6b316df777d6d4c97ad1",
|
"url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/e747489191f8e9144a7270eb61f8b9516e99e413",
|
||||||
"reference": "250d1bf45f80d15594fb6b316df777d6d4c97ad1",
|
"reference": "e747489191f8e9144a7270eb61f8b9516e99e413",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -277,7 +277,7 @@
|
|||||||
"phpunit/phpunit": "4.*",
|
"phpunit/phpunit": "4.*",
|
||||||
"scrutinizer/ocular": "~1.1"
|
"scrutinizer/ocular": "~1.1"
|
||||||
},
|
},
|
||||||
"time": "2018-12-24T17:21:44+00:00",
|
"time": "2019-08-02T11:57:39+00:00",
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/html-to-markdown"
|
"bin/html-to-markdown"
|
||||||
],
|
],
|
||||||
@ -298,17 +298,17 @@
|
|||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
|
||||||
"name": "Nick Cernis",
|
|
||||||
"email": "nick@cern.is",
|
|
||||||
"homepage": "http://modernnerd.net",
|
|
||||||
"role": "Original Author"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Colin O'Dell",
|
"name": "Colin O'Dell",
|
||||||
"email": "colinodell@gmail.com",
|
"email": "colinodell@gmail.com",
|
||||||
"homepage": "https://www.colinodell.com",
|
"homepage": "https://www.colinodell.com",
|
||||||
"role": "Lead Developer"
|
"role": "Lead Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nick Cernis",
|
||||||
|
"email": "nick@cern.is",
|
||||||
|
"homepage": "http://modernnerd.net",
|
||||||
|
"role": "Original Author"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "An HTML-to-markdown conversion helper for PHP",
|
"description": "An HTML-to-markdown conversion helper for PHP",
|
||||||
|
1
vendor/league/html-to-markdown/.github/FUNDING.yml
vendored
Normal file
1
vendor/league/html-to-markdown/.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
patreon: colinodell
|
18
vendor/league/html-to-markdown/.github/stale.yml
vendored
Normal file
18
vendor/league/html-to-markdown/.github/stale.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 90
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 30
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- pinned
|
||||||
|
- on hold
|
||||||
|
- security
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: stale
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
11
vendor/league/html-to-markdown/CHANGELOG.md
vendored
11
vendor/league/html-to-markdown/CHANGELOG.md
vendored
@ -4,6 +4,14 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
|
|||||||
|
|
||||||
## [Unreleased][unreleased]
|
## [Unreleased][unreleased]
|
||||||
|
|
||||||
|
## [4.8.2] - 2019-08-02
|
||||||
|
### Fixed
|
||||||
|
- Fixed headers not being placed onto a new line in some cases (#172)
|
||||||
|
- Fixed handling of links containing spaces (#175)
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- Removed support for HHVM
|
||||||
|
|
||||||
## [4.8.1] - 2018-12-24
|
## [4.8.1] - 2018-12-24
|
||||||
### Added
|
### Added
|
||||||
- Added support for PHP 7.3
|
- Added support for PHP 7.3
|
||||||
@ -243,7 +251,8 @@ not ideally set, so this releases fixes that. Moving forwards this should reduce
|
|||||||
### Added
|
### Added
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
||||||
[unreleased]: https://github.com/thephpleague/html-to-markdown/compare/4.8.1...master
|
[unreleased]: https://github.com/thephpleague/html-to-markdown/compare/4.8.2...master
|
||||||
|
[4.8.2]: https://github.com/thephpleague/html-to-markdown/compare/4.8.1...4.8.2
|
||||||
[4.8.1]: https://github.com/thephpleague/html-to-markdown/compare/4.8.0...4.8.1
|
[4.8.1]: https://github.com/thephpleague/html-to-markdown/compare/4.8.0...4.8.1
|
||||||
[4.8.0]: https://github.com/thephpleague/html-to-markdown/compare/4.7.0...4.8.0
|
[4.8.0]: https://github.com/thephpleague/html-to-markdown/compare/4.7.0...4.8.0
|
||||||
[4.7.0]: https://github.com/thephpleague/html-to-markdown/compare/4.6.2...4.7.0
|
[4.7.0]: https://github.com/thephpleague/html-to-markdown/compare/4.6.2...4.7.0
|
||||||
|
@ -35,7 +35,7 @@ class HeaderConverter implements ConverterInterface, ConfigurationAwareInterface
|
|||||||
$style = $this->config->getOption('header_style', self::STYLE_SETEXT);
|
$style = $this->config->getOption('header_style', self::STYLE_SETEXT);
|
||||||
|
|
||||||
if (strlen($element->getValue()) === 0) {
|
if (strlen($element->getValue()) === 0) {
|
||||||
return '';
|
return "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($level === 1 || $level === 2) && !$element->isDescendantOf('blockquote') && $style === self::STYLE_SETEXT) {
|
if (($level === 1 || $level === 2) && !$element->isDescendantOf('blockquote') && $style === self::STYLE_SETEXT) {
|
||||||
|
@ -24,6 +24,9 @@ class LinkConverter implements ConverterInterface
|
|||||||
} elseif ($href === 'mailto:' . $text && $this->isValidEmail($text)) {
|
} elseif ($href === 'mailto:' . $text && $this->isValidEmail($text)) {
|
||||||
$markdown = '<' . $text . '>';
|
$markdown = '<' . $text . '>';
|
||||||
} else {
|
} else {
|
||||||
|
if (stristr($href, ' ')) {
|
||||||
|
$href = '<'.$href.'>';
|
||||||
|
}
|
||||||
$markdown = '[' . $text . '](' . $href . ')';
|
$markdown = '[' . $text . '](' . $href . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user