github / github/markup

Fix HTML rendering when there is a line break between backticks

Ouverte
#1,689 26 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Ruby
Étoiles
6k
Forks
3.4k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.