Alir3z4 / Alir3z4/html2text

colspan is entirely ignored, which results in misformated tables

オープン
#367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2.2k
フォーク
296
PR マージ指標
30日以内にマージされた PR はありません

説明

For example this test:
`echo 'AB123' | html2text --pad-tables`

Output is currently weirdly mangled with incorrect columns:
```
A | B
----|----
1 | 2 | 3
```

Today I learned: markdown bizarrely has no defined way of dealing with colspan or rowspan. The correct syntax is undefined here, but adding a blank dummy cell seems to be the best option at the moment, so the output should be:

```
A | | B
---|---|---
1 | 2 | 3
```

Or as shown here in github's implementation of markdown:

A | | B
---|---|---
1 | 2 | 3

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。