Remote file: first heading is replaced with GitHub page HTML
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
Piste de recherche
Start by reproducing the command against the GitHub README URLs in the issue and trace the remote README handling, including the commented-out “TOC for remote README.md” test. Done means the first heading produces a normal heading anchor and the existing entries remain correct, while wiki-page behavior is unchanged.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Steps
./gh-md-toc https://github.com/ekalinin/github-markdown-toc/blob/master/README.md
Expected
* [gh-md-toc](#gh-md-toc)
* [Table of contents](#table-of-contents)
...
Actual
The first entry contains GitHub page markup instead of the heading:
* [<button data-component="Button" type="button" aria-label="Expand file tree" ...
* [Table of contents](#table-of-contents)
...
The line is about 30 KB long, its href points to the repository tree URL
(/<owner>/<repo>/tree/<sha>) instead of the heading anchor, and it is indented
as a second-level entry. The other entries are correct.
Reproduced with gh-md-toc 0.10.0. The same happens for
https://github.com/ekalinin/sitemap.js/blob/6bc3eb12c898c1037a35a11b2eb24ababdeb3580/README.md
(the URL from the commented-out "TOC for remote README.md" test).
Wiki pages, e.g. https://github.com/ekalinin/nodeenv/wiki/Who-Uses-Nodeenv, are not affected.
- Langage dominant
- Shell
- Étoiles
- 3.3k
- Forks
- 2.7k
- Merge moyen
- 7 min
- PR mergées (30 j)
- 3
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ekalinin/github-markdown-toc
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
ekalinin/github-markdown-toc#167 ·
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
ekalinin/github-markdown-toc#165 ·
-
[Feature] `--no-code-tag-removal` flag allowing to make removal of backticks in TOC entries optionalOuverteenhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 58/100
ekalinin/github-markdown-toc#153 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
ekalinin/github-markdown-toc#152 · 1 réaction ·
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
ekalinin/github-markdown-toc#141 ·
Toutes les issues de ekalinin/github-markdown-toc
Issues similaires
-
🎙️ task - fix(deployer): deploy --env prep runs deploy:dev where the repo declares deploy:prepOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
backlog bug
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
WLAN-Pi/wlanpi-profiler#306 ·
Les mainteneurs répondent en général sous 1 jour
-
area: backend good first issue priority: P3 - low size: S type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Mizithra/ActiveTerrain#31 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
obra/superpowers#2422 ·
Les mainteneurs répondent en général sous 6 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
ComplianceAsCode/content#15152 ·
Les mainteneurs répondent en général sous 2 jours