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

Markdown hiding for links broken when text surrounded by square brackets #819

Open
meliache opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@meliache
Copy link

I added the link

[`[resources]`](https://luigi.readthedocs.io/en/stable/configuration.html?highlight=resources#resources) section you can

which on github renders properly as [resources]. In markdown-mode the markdown-hiding is broken for that type of link text. I admit this is tricky, not sure how other mardown-renderers handle this. But gfm-mode at least should aim to reproduce what github is showing.

Expected Behavior

When markdown hiding is enabled, render a link to a toml section where the link text contains the square brackets as [text], don't show the URL.

Actual Behavior

All parts of the markdown are shown, nothing is hidden when the link text is surrounded by square brackets in Emacs:
image

Steps to Reproduce

Reproduced with

emacs -Q --load path/to/markdown-mode.el test-case.md

M-x gfm-mode
M-x markdown-toggle-markup-hiding
test-case.md

Software Versions

  • Markdown Mode: version 2.7-alpha, from git using Elpaca default recipe, b1a862f.
  • Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
  • OS: ArchLinux
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