Fix Markdown code block formatting inconsistencies.

Review Request #11616 — Created May 24, 2021 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

There were a few long-term inconsistencies between edit mode and render
mode for Markdown code blocks:

  1. Whitespace in a code literal wasn't preserved in render mode, even
    if present in edit mode.

  2. The start and end of a fenced code block in edit mode was getting the
    background color of a code literal, which looked broken.

  3. Some colors were different for code inside a code block between
    rendered mode and edit mode.

This change fixes these three issues, making code look a lot more
consistent between the two modes.

Tested a handful of code blocks and inline code, making sure presentation
was mostly consistent where possible.


Commits

Files

    Loading...