A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/794 below:

Code Block Background Color only where text is · Issue #794 · jrblevin/markdown-mode · GitHub

Expected Behavior

Org mode and most online Markdown visualizations show the background color for code blocks full width:

Org-mode:

Markdown rendered by Github:

Also, I personally find it easier to work with code in a block that is full width colorized.

Actual Behavior

Currently markdown mode applies markdown-pre-face only where text is within a code block:

Should this be intended behavior, maybe a feature flag could be added to switch between viewing modes for code blocks.

Steps to Reproduce
  1. Set a background color to markdown-pre-face that is different from the rest:
    (custom-set-faces `(markdown-pre-face ((t :background "#ff0000"))))
  2. Create code block in md mode
Backtrace

n/a

Software Versions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4