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

Bug: Uninitialized string offset: 1 #850

Open
hamedgasemi200 opened this issue Apr 19, 2023 · 0 comments
Open

Bug: Uninitialized string offset: 1 #850

hamedgasemi200 opened this issue Apr 19, 2023 · 0 comments

Comments

@hamedgasemi200
Copy link

hamedgasemi200 commented Apr 19, 2023

When my text contains "&" sign in some specific places in the text, like the example below:

+ [What's the difference between semicolon and double ampersand &&](https://unix.stackexchange.com/questions/187145/whats-the-difference-between-semicolon-and-double-ampersand)

Parsedown returns the following error.

Bug: Uninitialized string offset: 1

I solved it by overwriting inlineSpecialCharacter, but please fix it.

protected function inlineSpecialCharacter($Excerpt)
{
    if (isset($Excerpt['text'][1])) parent::inlineSpecialCharacter($Excerpt);
}
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