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

GitHub Markdown tables with no rows don't get converted to Html tables #2017

Closed
csuzw opened this issue Mar 22, 2015 · 1 comment
Closed
Labels

Comments

@csuzw
Copy link

csuzw commented Mar 22, 2015

Executing pandoc -f markdown_github -t html5 test.md where test.md is:

### Arguments

| Name | Type | Description | Example |
|------|------|-------------|---------|

### Example

Outputs the following html:

<h3 id="arguments">Arguments</h3>
<p>| Name | Type | Description | Example |<br />|------|------|-------------|---------|</p>
<h3 id="example">Example</h3>

As the markdown table gets displayed correctly on GitHub wiki, I'd expect the html to contain a table, rather than the table text wrapped in <p> tags.

@mpickering mpickering added the bug label Mar 22, 2015
lierdakil added a commit to lierdakil/pandoc that referenced this issue Mar 23, 2015
lierdakil added a commit to lierdakil/pandoc that referenced this issue Mar 23, 2015
@lierdakil
Copy link
Contributor

This should be as simple as changing many1 to many in Markdown pipe table parser. See 84dfff8. Shouldn't break anything.

@jgm jgm closed this as completed in 75a2a7b Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants