Skip to content

Commit f043658

Browse files
committed
Add a test for fancy list insertion
1 parent 22f600f commit f043658

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/markdown-test.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ Test point position upon removal and insertion."
10001000
(goto-char (point-max))
10011001
(call-interactively 'markdown-insert-list-item)
10021002
(should (string-equal (buffer-string) "6. foo\n7. ")))
1003+
;; Following a fancy list item, on the next line
1004+
(markdown-test-string "#. foo"
1005+
(goto-char (point-max))
1006+
(call-interactively 'markdown-insert-list-item)
1007+
(should (string-equal (buffer-string) "#. foo\n#. ")))
10031008
;; Following a nested ordered list item
10041009
(markdown-test-string "6. foo\n 1. bar"
10051010
(goto-char (point-max))

0 commit comments

Comments
 (0)