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

unexpected behavior on empty html table cell #2718

Closed
amueller opened this issue Feb 16, 2016 · 1 comment
Closed

unexpected behavior on empty html table cell #2718

amueller opened this issue Feb 16, 2016 · 1 comment

Comments

@amueller
Copy link

I tried to convert

<table>
    <tr>
      <th></th>
      <th>age</th>
      <th>workclass</th>
    </tr>
    <tr>
      <th>0</th>
      <td>39</td>
      <td>State-gov</td>
    </tr>
</table>

to a github pipe table with pandoc blub.html --to markdown_github.
However, that resulted in html output.
When I explicitly put a space into the first cell:

<table>
    <tr>
      <th>&nbsp;</th>
      <th>age</th>
      <th>workclass</th>
    </tr>
    <tr>
      <th>0</th>
      <td>39</td>
      <td>State-gov</td>
    </tr>
</table>

I got the expected result:

|     | age | workclass |
|-----|-----|-----------|
| 0   | 39  | State-gov |

This seems like a bug to me.

@jgm jgm closed this as completed in b8dadc6 Feb 16, 2016
@amueller
Copy link
Author

thanks, that was quick!

c-forster pushed a commit to c-forster/pandoc that referenced this issue Mar 4, 2016
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