Skip to content

Commit

Permalink
Add test of #159 about fill-paragraph with header
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Aug 27, 2016
1 parent 3ba1851 commit db42825
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3595,6 +3595,16 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
(back-to-indentation)
(should-not (looking-at-p "\\*foo")))))

(ert-deftest test-markdown-filling/ignore-header ()
"# Test fill-paragraph for containing header line paragraph.
https://github.com/jrblevin/markdown-mode/issues/159"
(markdown-test-string "# this is header line
this is not header line
"
(let ((fill-column 10))
(fill-paragraph)
(should (string= (buffer-substring (point) (line-end-position)) "# this is header line")))))

;;; Export tests:

(ert-deftest test-markdown-hook/xhtml-standalone ()
Expand Down

0 comments on commit db42825

Please sign in to comment.