matthewwithanm / python-markdownify

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

Special-case use of HTML tags for converting `<sub>` / `<sup>` #119

Closed jsm28 closed 5 months ago

jsm28 commented 8 months ago

Special-case use of HTML tags for sub_symbol and sup_symbol. In particular, this allows setting sub_symbol='<sub>', sup_symbol='<sup>' to use raw HTML in the output when converting subscripts and superscripts.

chrispy-snps commented 7 months ago

@jsm28 - would you consider removing the *_after configuration options and automatically using the closing tag variant if the opening option is an HTML tag?

jsm28 commented 7 months ago

I've revised things as suggested to handle HTML tags automatically instead of having separate configuration options.

chrispy-snps commented 5 months ago

Thank you @AlexVonB and @jsm28!