markdown-mode
markdown-mode copied to clipboard
feature request: make links work with the emacs buttons package
Proposed Behavior
When a buffer is rendered using markdown-mode
, links are set up in such a way that a mouse click on the link will follow the link (e.g., by invoking browse-url
). I would like these links also to be "buttons" in the sense of the buttons
package. In particular, I would like commands forward-button
, backward-button
, and push-button
to work with these links.
Current Behavior
Running forward-button
in a buffer rendered with markdown-mode
results in a message No buttons!
.
Steps to Reproduce
-
Create a file
test.md
with the following contents:(Home page)[http://www.cs.tufts.edu/~nr/].
-
Load the
markdown-mode
package. -
Run
M-x markdown-mode
. -
Confirm that clicking the link launches a browser.
-
Confirm that
forward-button
finds no buttons.
Software Versions
OS is
- Markdown Mode:
markdown-mode, version 2.5-dev
- Emacs:
GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-27, modified by Debian
- OS: Debian stable (bullseye)
Other
My Emacs Lisp skills are somewhat limited, but I'm willing to try to do something to make this happen.