Pasted tables should use at least 3 hyphens in each column of the header row

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, markdown
Domain
tooling

Research direction

Start by reproducing the pasted-table output and locating the code that generates the header-row separators. Change the generated separators so every column has at least three hyphens, then verify that the resulting table is recognized by strict Markdown renderers such as blackfriday.

Written by the indexing model from the issue text.

Description

GitHub's guide for Markdown tables indicates:

There must be at least three hyphens in each column of the header row.

But this plugin creates tables with two hyphens between each column of the header row. This behavior prevents strict renderers, such as Go's blackfriday, from detecting columns in tables pasted with this plugin:

/russross/blackfriday (block.go#L815)

Dominant language
JavaScript
Stars
234
Forks
47
Avg merge
1d 12h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/paste-markdown

All issues in github/paste-markdown

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.