• 
      

    Keep inline Markdown code styles consistent between edit and render.

    Review Request #11594 — Created April 12, 2021 and submitted

    Information

    Review Board
    release-4.0.x

    Reviewers

    A pet peeve of mine for years has been that inline code would style
    differently between CodeMirror (edit mode) and rendered Markdown. The
    edit mode style was just a sort of metalic purple text. The rendered
    style was red, with a faint background and border.

    This change makes the styles consistent between the two, choosing the
    rendered mode. There's now a 1-to-1 pixel mapping between the two, with
    the exception that in edit mode, the backticks are visible.

    Tested in Chrome and Firefox. Swapped between edit and render modes, and
    saw they were consistent.

    Summary ID
    Keep inline Markdown code styles consistent between edit and render.
    A pet peeve of mine for years has been that `inline code` would style differently between CodeMirror (edit mode) and rendered Markdown. The edit mode style was just a sort of metalic purple text. The rendered style was red, with a faint background and border. This change makes the styles consistent between the two, choosing the rendered mode. There's now a 1-to-1 pixel mapping between the two, with the exception that in edit mode, the backticks are visible.
    315660cd6297b0feb9d4ba4f93b9a9ac18bf0ffa

    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.0.x (9b90e16)