Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like converting table does not work anymore? #20

Closed
chhantyal opened this issue Jan 24, 2020 · 1 comment
Closed

Looks like converting table does not work anymore? #20

chhantyal opened this issue Jan 24, 2020 · 1 comment

Comments

@chhantyal
Copy link

s = `<table>
  <tr>
    <td>John</td>
    <td>Doe</td>
  </tr>
  <tr>
    <td>Jane</td>
    <td>Doe</td>
  </tr>
</table>`

var t = new TurndownService();
t.use(turndownPluginGfm.tables);
t.turndown(s);

Above produces same html as input.

<table><tbody><tr><td>John</td><td>Doe</td></tr><tr><td>Jane</td><td>Doe</td></tr></tbody></table>

@chhantyal chhantyal changed the title Looks like table does not work anymore? Looks like converting table does not work anymore? Jan 24, 2020
@chhantyal
Copy link
Author

Looks like this is because of missing thead. Closing because there seems to be duplicates issues eg. #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant