Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Remote file: first heading is replaced with GitHub page HTML

Cerrado
#166 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github, shell
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

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.

Lenguaje dominante
Shell
Estrellas
3.3k
Forks
2.7k
Merge medio
7 min
PR fusionados (30 d)
3

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ekalinin/github-markdown-toc

Todos los issues de ekalinin/github-markdown-toc

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.