src/AttributesInlineProcessor.php 1 location
|
@@ 36-38 (lines=3) @@
|
33 |
|
|
34 |
|
if ($node->isBlock()) { |
35 |
|
$target = $node->parent(); |
36 |
|
if (($parent = $target->parent()) instanceof ListItem && $parent->parent() instanceof ListBlock && $parent->parent()->isTight()) { |
37 |
|
$target = $parent; |
38 |
|
} |
39 |
|
} else { |
40 |
|
$target = $node->previous(); |
41 |
|
} |
src/AttributesProcessor.php 1 location
|
@@ 39-41 (lines=3) @@
|
36 |
|
list($target, $direction) = $this->findTargetAndDirection($node); |
37 |
|
|
38 |
|
if ($target) { |
39 |
|
if (($parent = $target->parent()) instanceof ListItem && $parent->parent() instanceof ListBlock && $parent->parent()->isTight()) { |
40 |
|
$target = $parent; |
41 |
|
} |
42 |
|
|
43 |
|
if ($direction === self::DIRECTION_SUFFIX) { |
44 |
|
$attributes = AttributesUtils::merge($target, $node->getAttributes()); |