Code block breaks the pages width
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione

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
- 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.
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