Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

/lib/markdown-tables.rb:92:in `validate': No cells given (RuntimeError) #5

@toaco

Description

@toaco

I think that a Markdown table should be rendered even if it only contains the header.

    if data.all? {|datum| datum.empty?}
      raise('No cells given')
    end

so

|Header1|Header2|
|:-|:-|

should be formatted as

Header1 Header2

instead of raise a RuntimeError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions