Emphasis clarification

Aperta
#849 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
50/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown
Ambito
documentation

Direzione di ricerca

The rules live in the emphasis section of the spec source; start with the rules numbered 1, 5 and 13 quoted here plus the left-flanking delimiter run definition they cite, and check how **foo** is described. The edit is editorial: state explicitly that the same delimiter character cannot open both emphasis and strong emphasis, or note that rule 13 already excludes that reading. Done means the wording around **foo** is unambiguous and the neighbouring rules still agree.

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

Descrizione

The specification of emphasis says (among other things):

  1. A single * character can open emphasis iff (if and only if) it is part of a left-flanking delimiter run.

and

\5. A double ** can open strong emphasis iff it is part of a left-flanking delimiter run.

The text doesn't say that the same character cannot both open emphasis and strong emphasis, so **foo** can be read as being both emphasized (twice) and strongly emphasized.

Unless this item is intended to avoid that reading:

\13. The number of nestings should be minimized. Thus, for example, an interpretation <strong>...</strong> is always preferred to <em><em>...</em></em>.

If that's the intention, then it may still be worth saying that explicitly.

Lingua principale
Python
Stelle
5.2k
Fork
361
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.