Alir3z4 / Alir3z4/html2text

Why not enable `include_sup_sub` by default?

Aperta
#437 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2.2k
Fork
296
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

I noticed that `include_sup_sub` is not enabled by default. This can lead to incorrect conversion of math expressions involving exponentiation.

For example, given the following code:
```python
import html2text

h = html2text.HTML2Text()
# h.include_sup_sub is False by default
h.handle("0 <= grid[i][j] <= 105")
```
The output will be:
```
`0 <= grid[i][j] <= 105`\n\n
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.