github / github/markup

Fix HTML rendering when there is a line break between backticks

Offen
#1,689 26 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
6k
Forks
3.4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.