Alir3z4 / Alir3z4/html2text

Why not enable `include_sup_sub` by default?

未关闭
#437 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
2.2k
派生
296
PR 合并指标
30 天内没有已合并 PR

描述

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
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。