You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to apply a macro to the list elements in my HTML, they seem to have no effect in the final HTML:
Block_Converter::macro( 'ol', function ( \DOMNode$node ) {
/* Convert to paragraph just to see if it works */returnnewBlock( 'core/paragraph', [], $node->textContent );
} );
The same happens regardless of whether the macro is targeting "ol", "li", or "ul".
However, the exact same macro targeting "h2" does work:
Block_Converter::macro( 'h2', function ( \DOMNode$node ) {
/* Convert to paragraph just to see if it works */returnnewBlock( 'core/paragraph', [], $node->textContent );
} );
Description of the bug
When trying to apply a macro to the list elements in my HTML, they seem to have no effect in the final HTML:
The same happens regardless of whether the macro is targeting
"ol"
,"li"
, or"ul"
.However, the exact same macro targeting
"h2"
does work:Steps To Reproduce
<ol>
and/or<li>
tags$converter = new Block_Converter( $html ); return $converter->convert();
Additional Information
Test HTML:
The text was updated successfully, but these errors were encountered: