Skip to content

Commit cba711a

Browse files
committed
Add unit test of #674
1 parent f3eb784 commit cba711a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
- Fix fill paragraph issue with setext heading [GH-638][]
8282
- Fix line break highlighting issue at end of buffer [GH-621][]
8383
- Fix URL highlighting which contains comma or parentheis [GH-649][]
84+
- Fix eldoc function issue with `markdown-toggle-url-hiding [GH-674][]
85+
Thanks to Ta Quang Trung for a patch
8486

8587
[gh-290]: https://github.com/jrblevin/markdown-mode/issues/290
8688
[gh-311]: https://github.com/jrblevin/markdown-mode/issues/311
@@ -121,6 +123,7 @@
121123
[gh-652]: https://github.com/jrblevin/markdown-mode/issues/652
122124
[gh-663]: https://github.com/jrblevin/markdown-mode/issues/663
123125
[gh-666]: https://github.com/jrblevin/markdown-mode/issues/666
126+
[gh-674]: https://github.com/jrblevin/markdown-mode/pull/674
124127

125128
# Markdown Mode 2.4
126129

tests/markdown-test.el

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,18 @@ See GH-245."
22242224
(should (invisible-p 154))
22252225
(should (invisible-p 156)))))
22262226

2227+
;;; Markup hiding url tests:
2228+
2229+
(ert-deftest test-markdown-url-hiding/eldoc ()
2230+
"Test hiding URL and eldoc.
2231+
Detail: https://github.com/jrblevin/markdown-mode/pull/674"
2232+
(markdown-test-string "[This is a hidden link](http://hidden.link)"
2233+
(markdown-toggle-url-hiding +1)
2234+
(search-forward "(")
2235+
(markdown-eldoc-function)
2236+
;; markdown-eldoc-function doesn't raise an exception
2237+
(should t)))
2238+
22272239
;;; Font lock tests:
22282240

22292241
(ert-deftest test-markdown-font-lock/italics-1 ()

0 commit comments

Comments
 (0)