Skip to content

Fix HTML rendering when there is a line break between backticks #1689

@shoelzer

Description

@shoelzer

A line break between backticks gets turned into a line break inside a HTML <code> 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 <code>git
lfs push</code> for any additional remote refs that contain Git LFS objects not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions