hackmdio / hackmdio/codimd

Handling of nested ordered list

Aperta
#414 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub
enhancement Hacktoberfest
Lingua principale
JavaScript
Stelle
10.1k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi

First to everyone who's contributed to this code, or pays for/assists with the hosting - thanks! its an awesome tool.

So,

If I'm using the editor and I start a list like so:

```
1. An Item
```
then hit return, I get (as expected):

```
1. An Item
2.
```

But, if I'm in a nest like so:

```
1. An Item
2. Another Item
3.
```
Then hit tab to indent item, the `3.` indents, but doesn't reset to be `1` (effectively `2.1`) which would be handy, versus going back to start of line, spacing 4 spaces then replacing the 3 with a 1, from which point the automatic numbering works correctly again within the list.

Similarly, it'd be great if shit tabbing from the last item on a nested list back into its parent list at the correct number.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the nested ordered-list case in the editor first. The issue names no files or tests; locate the editor's list indentation handling, then verify that indenting starts a nested list at 1 and outdenting restores the parent numbering.

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

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.