Remote file: first heading is replaced with GitHub page HTML
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 68/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Shell
- Estrelas
- 3.3k
- Forks
- 2.7k
- Merge médio
- 20min
- PRs com merge (30d)
- 7
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ekalinin/github-markdown-toc
-
Update bats version in CIAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
ekalinin/github-markdown-toc#176 ·
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
ekalinin/github-markdown-toc#165 ·
-
[Feature] `--no-code-tag-removal` flag allowing to make removal of backticks in TOC entries optionalAbertaenhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
ekalinin/github-markdown-toc#153 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
ekalinin/github-markdown-toc#152 · 1 reação ·
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
ekalinin/github-markdown-toc#141 ·
Todas as issues de ekalinin/github-markdown-toc
Issues semelhantes
-
Bug: pane path not quotedAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
-
Does a subagent definition's `tools:` bypass the permission check? One default-permission cellAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
pearu/agent-sandbox#156 ·
Mantenedores costumam responder em até 1 dia
-
area/documentation squad/marvin
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
rancher/stackstate-product-docs#443 ·
Mantenedores costumam responder em até 1 dia
-
Request: Remove Sikka appAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
getumbrel/umbrel-apps#6142 ·
Mantenedores costumam responder em até 2 dias
-
triage/confirmed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
agentscope-ai/agentscope#3030 ·
Mantenedores costumam responder em até 1 dia