Fix undefined variables in get_markup

Looks like a minor typo in the variable name $text_parts.