parsedown icon indicating copy to clipboard operation
parsedown copied to clipboard

Bug: Uninitialized string offset: 1

Open hamedgasemi200 opened this issue 1 year ago • 0 comments

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);
}

hamedgasemi200 avatar Apr 19 '23 03:04 hamedgasemi200