Skip to content

header-ids contain HTML entities #649

@justanotheranonymoususer

Description

Version: 9a88ce1

import markdown2

# header-ids contain HTML entities
# Expected second id to be "othertext", not "ltothertext"
# Also weird result in safe mode
markdown_text = R"""
# <sometext>
# &lt;othertext
"""
print(markdown2.markdown(markdown_text, #safe_mode='escape',
                         extras={'header-ids': None}))

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