Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Code fences and backtick strings are not fully disambiguated

Aperta
#800 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
markdown
Ambito
documentation

Direzione di ricerca

Read the CommonMark specification sections covering fenced code blocks and code spans, then reproduce cases 1–4 in the dingus. The issue is complete when the precedence rules are resolved and the specification or examples make the expected interpretation unambiguous.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

consider the following cases:

1 ```

2 ``` 222 ```

According the dingus, 1 is a code fence that is not part of a fenced code block, and 2 is a code span.

Reading through the spec, it's not clear why this is, or why the following couldn't be interpreted as a code span:

3 ```
333
```

after all, this is a valid code span:

4 ``
444
``

If this is because "block structures take precedence over inline structures", and because code fences are a separate AST element that can exist detached from a code block, then why is 2 not parsed as two code fences? the spec does not say that a line cannot contain 2 code fences.

Lingua principale
Python
Stelle
5.2k
Fork
360
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di commonmark/commonmark-spec

Tutte le issue di commonmark/commonmark-spec

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.