Skip to content

Regression: UnboundLocalError: cannot access local variable 'middle' #666

Description

Version: c87a78c

import markdown2

# This input raises an exception:
# UnboundLocalError: cannot access local variable 'middle' where it is not associated with a value
#
# Expected:
# Anything but an exception
#
# Actual:
# Exception raised
markdown_text = R"""
*[*test**](https://example.com/)
"""
print(markdown2.markdown(markdown_text))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions