Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: text #1

Open
netniV opened this issue May 16, 2021 · 1 comment
Open

Undefined index: text #1

netniV opened this issue May 16, 2021 · 1 comment

Comments

@netniV
Copy link
Owner

netniV commented May 16, 2021

When trying to call the parent::blockHeader() and undefined index error occurs.

image

@netniV
Copy link
Owner Author

netniV commented May 16, 2021

This seems to occur due to a mismatch between parsedown v1.8.0-beta7 and parse-extra v0.8.1. In the latest version of Parsedown, the blockHeader element is returned without the text attribute.

v1.7.4
$Block = array(
    'element' => array(
        'name' => 'h' . min(6, $level),
        'text' => $text,
        'handler' => 'line',
    ),
);
v1.8.0-beta7
$Block = array(
    'element' => array(
        'name' => 'h' . min(6, $level),
        'handler' => array(
            'function' => 'lineElements',
            'argument' => $text,
            'destination' => 'elements',
        )
    ),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant