Highlight whole line for markdown headers
github.com/jrblevin/markdown-mode/pull/706
I implemented markdown-fontify-whole-heading-line
flag. This is similar to org-fontify-whole-heading-line
flag in org-mode. If this variable is non-nil, markdown-mode sets face properties for whole header lines.
So you can highlight whole lines for headers by setting background
and extend
properties of markdown-header-face-*
.
For example
(setq markdown-fontify-whole-heading-line t)
(set-face-attribute 'markdown-header-face-1 nil :extend t :background "green" :foreground "black")
(set-face-attribute 'markdown-header-face-2 nil :extend t :background "pink" :foreground "black")
then markdown-mode highlights as below