diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-01-02 22:41:03 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-01-02 22:41:03 +0100 |
commit | dbd230da7407ac70483c004bc82f4b8619c42760 (patch) | |
tree | 14e016f85e6a8466a2dfcdbeadaab0adb8cff153 /vendor/league/html-to-markdown/src/Converter/DefaultConverter.php | |
parent | a19563e1396cb882063db3ce3f355b2db48175e9 (diff) | |
download | volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.gz volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.bz2 volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.zip |
update composer libs
Diffstat (limited to 'vendor/league/html-to-markdown/src/Converter/DefaultConverter.php')
-rw-r--r-- | vendor/league/html-to-markdown/src/Converter/DefaultConverter.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php b/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php index 964a71093..8de0af210 100644 --- a/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php +++ b/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php @@ -37,7 +37,13 @@ class DefaultConverter implements ConverterInterface, ConfigurationAwareInterfac return $element->getValue(); } - return html_entity_decode($element->getChildrenAsString()); + $markdown = html_entity_decode($element->getChildrenAsString()); + + if ($element->getTagName() === 'table') { + $markdown .= "\n\n"; + } + + return $markdown; } /** |