Skip to content

Commit

Permalink
Hide entire opening and closing code block lines
Browse files Browse the repository at this point in the history
See GH-130 for more details.
  • Loading branch information
jrblevin committed Jun 13, 2017
1 parent 50a2b49 commit aebc03e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -7898,7 +7898,10 @@ Use matching function MATCHER."
(add-text-properties start end '(face markdown-pre-face)))
;; Set background for block as well as opening and closing lines.
(font-lock-append-text-property
bol-prev eol-next 'face 'markdown-code-face))))
bol-prev eol-next 'face 'markdown-code-face)
;; Set invisible property for lines before and after, including newline.
(add-text-properties bol-prev start '(invisible markdown-markup))
(add-text-properties end eol-next '(invisible markdown-markup)))))
t))

(defun markdown-fontify-gfm-code-blocks (last)
Expand Down

0 comments on commit aebc03e

Please sign in to comment.