aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-02 22:41:03 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-02 22:41:03 +0100
commitdbd230da7407ac70483c004bc82f4b8619c42760 (patch)
tree14e016f85e6a8466a2dfcdbeadaab0adb8cff153 /vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php
parenta19563e1396cb882063db3ce3f355b2db48175e9 (diff)
downloadvolse-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/HardBreakConverter.php')
-rw-r--r--vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php b/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php
index d079d9127..1be10bd63 100644
--- a/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php
+++ b/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php
@@ -35,7 +35,10 @@ class HardBreakConverter implements ConverterInterface, ConfigurationAwareInterf
$next_value = $next->getValue();
if ($next_value) {
if (in_array(substr($next_value, 0, 2), array('- ', '* ', '+ '))) {
- $return .= '\\';
+ $parent = $element->getParent();
+ if ($parent && $parent->getTagName() == 'li') {
+ $return .= '\\';
+ }
}
}
}