Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.74k stars 266 forks source link

[Bug] Assumes first row is always table header even if it is not #387

Open roniemartinez opened 2 years ago

roniemartinez commented 2 years ago

The script:

print(
        html2text.html2text(
            """
            <table>
            <tbody>
            <tr><td>item a</td><td>item b</td></tr>
            <tr><td>item c</td><td>item d</td></tr>
            </tbody>
            </table>
            """
        )
    )

Results to:

item a| item b  
---|---  
item c| item d