github / github/markup

Fix HTML rendering when there is a line break between backticks

Aperta
#1,689 26 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Ruby
Stelle
6k
Fork
3.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

A line break between backticks gets turned into a line break inside a HTML `` block. This makes browsers render with a line break when that was not intended.

Real world example here:
https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-push.adoc

These lines:

If you are migrating a repository with these commands, make sure to run `git
lfs push` for any additional remote refs that contain Git LFS objects not

Turn into this HTML:

If you are migrating a repository with these commands, make sure to run git
lfs push
for any additional remote refs that contain Git LFS objects not

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.