Remote file: first heading is replaced with GitHub page HTML
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Shell
- Sterne
- 3.3k
- Forks
- 2.7k
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ekalinin/github-markdown-toc
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
ekalinin/github-markdown-toc#167 ·
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
ekalinin/github-markdown-toc#165 ·
-
[Feature] `--no-code-tag-removal` flag allowing to make removal of backticks in TOC entries optionalOffenenhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
ekalinin/github-markdown-toc#153 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
ekalinin/github-markdown-toc#152 · 1 Reaktion ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
ekalinin/github-markdown-toc#141 ·
Alle Issues in ekalinin/github-markdown-toc
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
alunduil/alunduil-infrastructure#629 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
duckdb/duckdb-skills#19 ·