matthewwithanm / python-markdownify

Convert HTML to Markdown
MIT License
1.17k stars 140 forks source link

WHITELIST_TAGS don't work #139

Closed mahdi-marjani-moghadam closed 6 days ago

mahdi-marjani-moghadam commented 4 months ago

I used WHITELIST_TAGS in setting.py but don't work.

markdownify.markdownify("sdf<ul><li><b>aaa</b></li></ul>", heading_style="ATX", whitelist_tags=["ul", "li"])

please help me :(

trustmaster commented 3 months ago

@mahdi-marjani-moghadam that option is called convert:

markdownify.markdownify("sdf<ul><li><b>aaa</b></li></ul>", heading_style="ATX", convert=["ul", "li"])