Lazy continuation line inside a quoted list item is parsed as a nested list
I maintainer di solito rispondono entro 4 giorni
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- markdown, typescript
- Ambito
- compilers
Direzione di ricerca
The bug is in the blockquote handling of Tokenizer.ts, where the quoted text is re-lexed as a list using the raw text of the old token. Start by reproducing the > - j followed by - t input and comparing it with the CommonMark output in the issue. Done means the second line stays a lazy paragraph continuation inside the li for the tab, lazy-line, and indented variants, without changing the existing nested-list tests. Check with the maintainers whether they want the spec behavior, since the issue itself raises a possible reason to leave it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
> - j
- t
marked 18.x (master dd9fbbe8), gfm on or off:
<blockquote><ul><li>j<ul><li>t</li></ul></li></ul></blockquote>
commonmark.js 0.31 and markdown-it:
<blockquote><ul><li>j
- t</li></ul></blockquote>
The second line has no >, so it can only be a lazy paragraph continuation line, and a lazy line can't open a new block. marked re-lexes it together with the list's raw text (Tokenizer.ts blockquote → this.list(oldToken.raw + '\n' + lines…)), where it reads as an indented sub-item. Same with a tab (> - j\n\t- t) and after another lazy line (> - a\nb\n - c).
Not covered by #4250 or #4290 (I built both). Happy to work on a fix if you want this to follow the spec. I can also see the case for leaving it as is.
- 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 oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
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
-
List item ends at a lazy line after a paragraph line indented 4+ columnsForse già presa @hakarrr l’ha presa 14 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di markedjs/marked
Issue simili
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
status:needs-triage type:bug workstream:refimpl
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
GenAI-Security-Project/agent-control-standard#764 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
TanbirRamim/vibereel#39 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
lingdojo/kana-dojo#34988 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno