Fix Markdown code block formatting inconsistencies.

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

chipx86
Review Board
release-4.0.x
reviewboard

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
Fix Markdown code block formatting inconsistencies.

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

Status: Closed (submitted)

Change Summary:

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