python-markdownify icon indicating copy to clipboard operation
python-markdownify copied to clipboard

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

Open jsm28 opened this issue 1 year ago • 2 comments

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.

jsm28 avatar Apr 04 '24 20:04 jsm28

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

chrispy-snps avatar Apr 14 '24 14:04 chrispy-snps

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

jsm28 avatar Apr 19 '24 20:04 jsm28

Thank you @AlexVonB and @jsm28!

chrispy-snps avatar Jun 23 '24 12:06 chrispy-snps