Skip to content

markdown-hide-markup does not hide headers when markdown-fontify-whole-heading-line is enabled #773

@kuranari

Description

@kuranari

Expected Behavior

When markdown-hide-markup is enabled, markdown header symbols should be hidden, even when markdown-fontify-whole-heading-line is enabled.

Actual Behavior

When markdown-fontify-whole-heading-line is enabled, enabling markdown-hide-markup does not hide markdown header symbols (e.g., #, ##).
image

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)

(setq markdown-fontify-whole-heading-line t)
(setq markdown-hide-markup t)

(custom-set-faces
 `(markdown-header-face-1 ((t (:background "#ff0000" :height 1.5 :extend t)))))
  1. Place the following in /tmp/emacs/sample.md:
# Header

text 
  1. HOME=/tmp/emacs emacs -Q --load /tmp/emacs/.emacs /tmp/emacs/sample.md

Backtrace

Software Versions

  • Markdown Mode: 2.6-alpha
  • Emacs: GNU Emacs 28.2
  • OS: macOS Ventura 13.3.1 (a)

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