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

Allow for parsing table with only header (no body) #430

Closed
davidcba1 opened this issue Sep 21, 2021 · 2 comments · Fixed by #450
Closed

Allow for parsing table with only header (no body) #430

davidcba1 opened this issue Sep 21, 2021 · 2 comments · Fixed by #450
Labels
bug Something isn't working

Comments

@davidcba1
Copy link

Describe the problem

When using an empty table like this

| Section/component | Name | Description | Comments |
|-------------------|------|-------------|----------|

I get this error

Exception occurred:
  File "/usr/local/lib/python3.9/site-packages/myst_parser/docutils_renderer.py", line 715, in render_table
    assert token.children and len(token.children) > 1
AssertionError

Removing the table or adding in dummy data works

Link to your repository or website

No response

Steps to reproduce

Running the build in a docker image and current versions of packages avail.

FROM sphinxdoc/sphinx:4.1.2

RUN python3 -m pip install sphinx_rtd_theme

RUN python3 -m pip install sphinxcontrib-confluencebuilder sphinx_git myst-parser

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

No response

@davidcba1 davidcba1 added the bug Something isn't working label Sep 21, 2021
@welcome
Copy link

welcome bot commented Sep 21, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@chrisjsewell
Copy link
Member

Thanks, yeh this is legitimate Markdown, but I will have to double-check if it renders correctly via Sphinx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants