Respect indentation

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

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
cli, documentation

Direzione di ricerca

Use the nested bullet and code-block example in the issue as the reproduction case; no source file or test is identified, so first locate the code that transforms CODEBLOCK_START/END markers and handles indentation. Done means the injected block retains the bullet's indentation and matches the expected output.

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

Descrizione

I want to add a codeblock under a bullet, like this:

-   Available locales are dynamically loaded from `next.config.js`
    <!-- CODEBLOCK_START {"value": "next.config.js"} -->
    <!-- prettier-ignore -->
    ~~~~~~~~~~bash
    File: .nvmrc

    v16.14.2
    ~~~~~~~~~~

    <!-- CODEBLOCK_END -->

But the outcome is:

-   Available locales are dynamically loaded from `next.config.js`

    <!-- CODEBLOCK_START {"value": "next.config.js"} -->
<!-- prettier-ignore -->
~~~~~~~~~~js
File: next.config.js

module.exports = {
  i18n: {
    locales: ["en", "es"],
    defaultLocale: "en",
  },
}
~~~~~~~~~~

<!-- CODEBLOCK_END -->
Lingua principale
TypeScript
Stelle
12
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 target/markdown-inject

Tutte le issue di target/markdown-inject

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.