reactjs / reactjs/react.dev

Code block breaks the pages width

Aperta
#1,006 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
JavaScript
Stelle
11.8k
Fork
7.9k
Merge medio
1g 11h
PR unite (30g)
11

Descrizione

screenshot from 2018-06-27 02-27-12

The code block word wrap doesn't work in this case of

const domContainer = document.querySelector('#like_button_container');

breaks the width of the page

Maybe add https://prismjs.com/plugins/normalize-whitespace/

break-lines?

PrismJS doesn't handle line wrap of document.querySelector('#like_button_container'); dot or string, it treat it as a whole thing.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Start by reproducing the overflowing code block shown in the issue on the React documentation website, then inspect the code-block rendering and styling entry points. Compare the behavior with PrismJS's line-wrapping options. Done means long unbroken code such as document.querySelector('#like_button_container') wraps without widening the page.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.