Skip to content

Commit

Permalink
Set pre attribute the end of the last line for indented block
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Aug 19, 2023
1 parent b76404d commit f900028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ giving the bounds of the current and parent list items."
(not (eobp)))
(forward-line))
(skip-syntax-backward "-")
(setq close (point)))
(setq close (min (point-max) (1+ (point)))))
;; If current line has a list marker, update levels, move to end of block
((looking-at markdown-regex-list)
(setq levels (markdown-update-list-levels
Expand Down
4 changes: 2 additions & 2 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3826,8 +3826,8 @@ returns nil."
(should (equal (markdown-syntax-propertize-extend-region 93 157)
nil))
(should (equal (markdown-syntax-propertize-extend-region 496 502)
(cons 486 510)))
(should (equal (markdown-syntax-propertize-extend-region 486 510)
(cons 486 511)))
(should (equal (markdown-syntax-propertize-extend-region 486 511)
nil))
;; Region that begins and ends with \n\n should not be extended
(should (equal (markdown-syntax-propertize-extend-region 157 355)
Expand Down

0 comments on commit f900028

Please sign in to comment.