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 20, 2023
1 parent b76404d commit c021b8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- Improve `markdown-insert-table` prompt message [GH-771][]
- Consider `major-mode-remap-alist` to determine major-mode for code blocks [GH-787][]
- Set marker after footnote reference [GH-793][]
- Improve putting text attribute for indented blocks [GH-794][]

* Bug fixes:
- Don't override table faces by link faces [GH-716][]
Expand Down Expand Up @@ -61,6 +62,7 @@
[gh-786]: https://github.com/jrblevin/markdown-mode/pull/786
[gh-787]: https://github.com/jrblevin/markdown-mode/issues/787
[gh-793]: https://github.com/jrblevin/markdown-mode/pull/793
[gh-794]: https://github.com/jrblevin/markdown-mode/issues/794

# Markdown Mode 2.5

Expand Down
1 change: 1 addition & 0 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,7 @@ giving the bounds of the current and parent list items."
(not (eobp)))
(forward-line))
(skip-syntax-backward "-")
(forward-line)
(setq close (point)))
;; If current line has a list marker, update levels, move to end of block
((looking-at markdown-regex-list)
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 c021b8f

Please sign in to comment.