Skip to content

Headers ignore the extend font face attribute #705

@cyrus-and

Description

@cyrus-and

Expected Behavior

The extend attribute should be respected, just like it happens for markdown-code-face. That is, the background color of the markdown-header-face-* should extend to the whole width of the buffer when extend is t.

Actual Behavior

The background does not extend:

Screenshot 2022-05-06 at 10 41 24 AM

Steps to Reproduce

  1. Place the following in /tmp/emacs/.emacs:

    (setq custom-file "/dev/null")
    
    (package-initialize)
    (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
    
    (package-install 'markdown-mode)
    
    (custom-set-faces
     `(markdown-header-face-1 ((t (:background "#ff0000" :extend t)))))
  2. Start Emacs with HOME=/tmp/emacs emacs;

  3. Create or open a Markdown file with at least one top-level header:

    # Header
    
    ```
    code
    ```

Backtrace

There are no errors.

Software Versions

  • Markdown Mode: version 2.6-dev
  • Emacs: GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6.5 (Build 20G527)) of 2022-04-29
  • OS: macOS Big Sur 11.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions