Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki link markdown hiding not working #847

Open
jayemar opened this issue Oct 23, 2024 · 0 comments
Open

Wiki link markdown hiding not working #847

jayemar opened this issue Oct 23, 2024 · 0 comments

Comments

@jayemar
Copy link

jayemar commented Oct 23, 2024

Expected Behavior

If I have a wiki link such as [[foo|bar]] and I run markdown-toggle-markup-hiding, only bar should be shown.

This works for inline markdown links as well as reference links, but not for wiki links. I have the value of markdown-enable-wiki-links set to t.

Actual Behavior

Running the command markdown-toggle-markup-hiding has no effect on the display of the wiki link. The entire link is shown both before and after enabling markup hiding:
[[foo|bar]]

Steps to Reproduce

  1. Enable wiki links: (setq markdown-enable-wiki-links t)
  2. Run the command markdown-insert-wiki-link. This will insert a pair of nested square brackets: [[]]
  3. Type "foo|bar" inside of the square brackets so you now have [[foo|bar]]
  4. Run the command markdown-toggle-markup-hiding. The displayed text doesn't change. Run the command again and it still doesn't change.

Backtrace

There is no error

Software Versions

markdown version 2.7-alpha
Emacs: 29.4
OS: Fedora 40
Examples:

Additional Information

As I was looking through the code trying to better understand what's been happening I notice that wiki links seem to be handled much differently than inline markdown links and reference links, even for image links. The other link types seem to be routed through much the same code, but wiki links have their own separate code path. Can you help me understand why this is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant