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>
# <othertext
"""
print(markdown2.markdown(markdown_text, #safe_mode='escape',
extras={'header-ids': None}))