Fix Markdown code block formatting inconsistencies.

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

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.

Summary ID
Fix Markdown code block formatting inconsistencies.
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.
30af623d374e67048ea7c0c4dad92b938b04707c

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (b9d18e4)
Loading...