File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 33
33
- Mark ` markdown-css-paths ` safe as file local variables [ GH-834 ] [ ]
34
34
- Resolve style sheets in ` markdown-css-paths ` relative to the Markdown file
35
35
(if the path starts with ` ./ ` or ` ../ ` ) [ GH-855 ] [ ] [ GH-870 ] [ ]
36
+ - Don't insert list item in code block [ GH-841 ] [ ]
36
37
37
38
[ gh-780 ] : https://github.com/jrblevin/markdown-mode/issues/780
38
39
[ gh-802 ] : https://github.com/jrblevin/markdown-mode/issues/802
43
44
[ gh-834 ] : https://github.com/jrblevin/markdown-mode/issues/834
44
45
[ gh-838 ] : https://github.com/jrblevin/markdown-mode/issues/838
45
46
[ gh-839 ] : https://github.com/jrblevin/markdown-mode/issues/839
47
+ [ gh-841 ] : https://github.com/jrblevin/markdown-mode/issues/841
46
48
[ gh-845 ] : https://github.com/jrblevin/markdown-mode/issues/845
47
49
[ gh-848 ] : https://github.com/jrblevin/markdown-mode/issues/848
48
50
[ gh-855 ] : https://github.com/jrblevin/markdown-mode/issues/855
Original file line number Diff line number Diff line change @@ -5188,6 +5188,7 @@ list simply adds a blank line)."
5188
5188
(markdown-indent-on-enter
5189
5189
(let (bounds)
5190
5190
(if (and (memq markdown-indent-on-enter '(indent-and-new-item))
5191
+ (not (markdown-code-block-at-point-p))
5191
5192
(setq bounds (markdown-cur-list-item-bounds)))
5192
5193
(let ((beg (cl-first bounds))
5193
5194
(end (cl-second bounds))
Original file line number Diff line number Diff line change @@ -2109,6 +2109,17 @@ See GH-245."
2109
2109
(should (string-equal (buffer-string) " - [X] item\n\n"))
2110
2110
(should (= (point) 18)))))
2111
2111
2112
+ (ert-deftest test-markdown-indentation/not-insert-list-item-in-code-block ()
2113
+ "Don't insert new item if here is in code."
2114
+ (let ((markdown-indent-on-enter 'indent-and-new-item))
2115
+ (markdown-test-string "```
2116
+ - foo
2117
+ ```"
2118
+ (forward-line)
2119
+ (end-of-line)
2120
+ (call-interactively #'markdown-enter-key)
2121
+ (should-not (looking-back "- ")))))
2122
+
2112
2123
;;; Markup hiding tests:
2113
2124
2114
2125
(ert-deftest test-markdown-markup-hiding/italics-1 ()
You can’t perform that action at this time.
0 commit comments