github / github/markup

Fix HTML rendering when there is a line break between backticks

Open
#1,689 26 comments 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
6k
Forks
3.4k
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.