github / github/paste-markdown

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

Ouverte
#104 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
234
Forks
47
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

[GitHub's guide for Markdown tables](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables#creating-a-table) 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](https://github.com/russross/blackfriday) ([block.go#L815](https://github.com/russross/blackfriday/blob/e96880f42b9343aea6cbfd99693adae0e5fe2b2a/block.go#L815))

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, markdown
Domaine
tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.