Skip to content

Commit

Permalink
Merge pull request #793 from slotThe/feat/footnote-mark
Browse files Browse the repository at this point in the history
Push mark before jumping to footnote
  • Loading branch information
syohex committed Aug 17, 2023
2 parents f8a91fe + f298e65 commit bc0c0b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc0c0b9

Please sign in to comment.