branch: elpa/markdown-mode
commit bc0c0b9c38223ab3f777795c6430ced08292e6b0
Merge: f8a91fef75 f298e65292
Author: Shohei YOSHIDA <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #793 from slotThe/feat/footnote-mark
Push mark before jumping to footnote
---
markdown-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/markdown-mode.el b/markdown-mode.el
index 4af2fd568f..4bb1a57dcb 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -4665,6 +4665,7 @@ element. More details here
https://developer.mozilla.org/en-US/docs/Web/HTML/Ele
(interactive)
(let ((fn (markdown-footnote-counter-inc)))
(insert (format "[^%d]" fn))
+ (push-mark (point) t)
(markdown-footnote-text-find-new-location)
(markdown-ensure-blank-line-before)
(unless (markdown-cur-line-blank-p)