giflw / remark-java

Remark is a HTML to Markdown library forked from https://bitbucket.org/OverZealous/remark (mercurial repository)
Other
26 stars 32 forks source link

some questions about table #9

Open katanala opened 5 years ago

katanala commented 5 years ago

html code block of table :

<table>
  <tbody>
  <tr><td>1</td><td>1</td></tr>
  </tbody>
</table>

i use the options of tables like this: options.tables = Options.Tables.MULTI_MARKDOWN;

the program converts the HTML code block to the markdown code, like this

| ---- | ---- | | 1 | 1 |

so , the html code of table can be draw, but the markdown code still code, can not be draw by the markdown engine. i think it should add empty header to support markdown engine to draw the table, like this :

|  |  |
| ---- | ---- |
| 1 | 1 |