Cicero Draft normalises indents to 3 spaces instead of the standard 4
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- markdown, typescript
- Ambito
- backend
Direzione di ricerca
Start by reading the cicero draft command path that formats template grammar output and trace where indentation is normalized. Reproduce with an indented list and sublist; the expected result is that their relative positions are preserved in the generated Markdown. The issue gives no file or test names, so first locate the command and its formatting tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Running cicero draft over a template grammar file to create a sample.md file results in indents being normalised to only having three spaces. This can result in inconsistencies in certain implementations where a list item were intended to be sublists but are instead normalised to being on the same level.
From the CommonMark standard:
"the position of the text after the list marker determines how much indentation is needed in subsequent blocks in the list item. If the list marker takes up two spaces, and there are three spaces between the list marker and the next non-whitespace character, then blocks must be indented five spaces in order to fall under the list item."
To Reproduce
Steps to reproduce the behavior:
- Create a simple template grammar which uses an indented list (see screenshot 1)
- Run cicero draft command (output is screenshot 2)
- Attempt to view resultant markdown file (the VSCode default 'preview' for example) (see screenshot 3)
Expected behavior
Relative position of lists and sublists established in the template grammar should be preserved.
Screenshots
1: 
2: 
3: 
Further context
From the CommonMark spec:
"Indentation. If a sequence of lines Ls constitutes a list item according to rule accordproject/cicero#1, accordproject/cicero#2, or accordproject/cicero#3, then the result of indenting each line of Ls by 1-3 spaces (the same for each line) also constitutes a list item with the same contents and attributes. If a line is empty, then it need not be indented."
See the significant discussion on this point in the commonmark spec
- Lingua principale
- TypeScript
- Stelle
- 86
- Fork
- 69
- Merge medio
- 6m
- PR unite (30g)
- 3
Preparare l'ambiente
- 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 accordproject/markdown-transform
-
Stale
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
accordproject/markdown-transform#679 · 2 commenti ·
-
@accordproject/markdown-it-template has a Nerq Trust Score of 68.0/100 — verified badge availableApertaStale
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
accordproject/markdown-transform#664 · 1 commento ·
-
Stale
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
accordproject/markdown-transform#582 · 2 commenti ·
-
Rename CiceroMark to AgreementMarkForse di nuovo libera @anablaz l’ha presa 980 giorni fa e non c’è nessuna pull request aperta. ApertaStale
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
accordproject/markdown-transform#536 · 4 commenti ·
-
Variable Name ConflictsApertaDifficulty: Challenging maintainer-engaged Priority: High ⚠️ Type: Bug 🐛
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
accordproject/markdown-transform#371 · 3 commenti ·
Tutte le issue di accordproject/markdown-transform
Issue simili
-
Mend: dependency security vulnerability
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
fdm-monster/fdm-monster#5563 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
growilabs/growi#12246 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 The Rulekeeper - An index run that gives up on the lock ends SucceededForse già presa @github-actions l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SSWConsulting/SSW.Rules#2809 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno