GFM protocol autolink starts right after `<`, linking URLs inside non-autolink angle brackets
I maintainer di solito rispondono entro 4 giorni
@EnesKartal ci sta già lavorando.
Dal 23/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- backend, testing-qa
Direzione di ricerca
The report names marked.parse and says the lexer emits an incorrect link token; it does not identify a source file or test. Start by reading the handling of GFM protocol autolinks and the existing coverage for #4118. Add a regression case for <https://example.com/foo bar> and confirm it renders as plain text.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Marked version: 18.1.1
Markdown flavor: GitHub Flavored Markdown (default)
Description
Same root cause as #4118, but for the http:// / https:// case, which is still reproducible on 18.1.1. No existing issue that I could find for the protocol variant.
Expectation
<https://example.com/foo bar> is not a CommonMark autolink (link destinations can't contain spaces), and a GFM extended autolink "can only come at the beginning of a line, after whitespace, or any of the delimiting characters *, _, ~, and (" — < is not one of them. GitHub renders it as plain text:
<p><https://example.com/foo bar></p>
Result
marked.parse('<https://example.com/foo bar>')
<p><<a href="https://example.com/foo">https://example.com/foo</a> bar></p>
The lexer emits a link token with autolink: true for https://example.com/foo even though it directly follows <, so a chunk of a non-autolink gets linked and the link text misrepresents what was written (the bar> part is dropped from the link but the visible text suggests the whole bracket was a URL).
#4118 covered the www. case (<www.example.com>); the protocol case after < still links on 18.1.1.
- Lingua principale
- TypeScript
- Stelle
- 37.3k
- Fork
- 3.9k
- Merge medio
- 5g 6h
- PR unite (30g)
- 62
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di markedjs/marked
-
Inline raw HTML is escaped after an unclosed `_` / `*` / `~` (regression in 18.2.1)Forse già presa @O1sumitkumar l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 4 giorni
-
Lazy continuation line inside a quoted list item is parsed as a nested listForse già presa @amstedy l’ha presa 1 giorno fa. ApertaL2 - annoying
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
markedjs/marked#4293 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Deeply nested emphasis is quadratic and overflows the stack in the lexerForse già presa @Pastalikek65 l’ha presa 5 giorni fa. Apertacategory: inline elements L2 - annoying
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
markedjs/marked#4286 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
proposal
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
markedjs/marked#4282 · 8 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Quadratic time in the inline `text` rule: its email look-ahead rereads the rest of the paragraphForse già presa @yxshee l’ha presa 10 giorni fa. ApertaL2 - annoying
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di markedjs/marked
Issue simili
-
Media browser returns "Not found" for repositories using the SHA-256 object formatForse già presa @adamchodera l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Follow-ups from #312Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
janhesters/remixcn#318 ·
I maintainer di solito rispondono entro 1 giorno
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
danielmiessler/LifeOS#3150 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Make the "%" unit spacing the same in the web and in A10Forse già presa @kragent66-glitch l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 commento ·