jarontai / html2md

A library for converting HTML to Markdown in Dart. It supports CommonMark, simple table and custom converting rules. 将html转换为markdown的Dart库,支持CommonMark、简单表格以及自定义转换规则。
https://pub.dev/packages/html2md
BSD 2-Clause "Simplified" License
58 stars 25 forks source link

Error result if <br> tag is contained #28

Closed lindeer closed 1 year ago

lindeer commented 1 year ago
<i>Tu regere imperio populos, Romane, memento:<br/>
        Hae tibi erunt artes, pacisque imponere morem,<br/>
        Parcere subiectis, et debellare superbos.</i>

result:

_Tu regere imperio populos, Romane, memento:  
Hae tibi erunt artes, pacisque imponere morem,  
Parcere subiectis, et debellare superbos._

expect:

_Tu regere imperio populos, Romane, memento:  _
_Hae tibi erunt artes, pacisque imponere morem,  _
_Parcere subiectis, et debellare superbos._
lindeer commented 1 year ago

close it as most md library could correctly parse it