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

Add support for (multi-line) footnotes #292

Open
shaksiper opened this issue Jan 24, 2024 · 1 comment
Open

Add support for (multi-line) footnotes #292

shaksiper opened this issue Jan 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@shaksiper
Copy link

When the foot note is not a singular word 1 (non-space), it behave as intended with working LSP actions such as rename, go to definition etc.
However, when the foot note is a text with space, it will not work as a foot note, LSP actions, highlighting etc will not work for that foot note.

Example text:

Testing paragraph [^test-note] with footer note [^test-note2]

[^test-note2]: Footer
[^test-note]: Footer note

Screenshot_20240124_155140

Environment details:

❯ nvim -v
NVIM v0.10.0-dev-2185+gae3eed53d
Build type: RelWithDebInfo
LuaJIT 2.1.1706032906
Run "nvim -V1 -v" for more info
❯ marksman --version
1.0.0-f124c56+f124c5616cf38241e1a5e58808ed78e2d9a1d385

Footnotes

  1. I suspect that it is treated as a regular link

@artempyanykh
Copy link
Owner

Thanks for reporting this @shaksiper! IIRC footnotes are not part of CommonMark standard for Markdown. With that said I want to have support for proper multiline footnotes, just didn't get around to adding it.

The fact that 'single-line' footnotes work now has to do with the fact that they are treated as reference definitions.

@artempyanykh artempyanykh changed the title Foot note breaks when it includes space Add support for (multi-line) footnotes Feb 1, 2024
@artempyanykh artempyanykh added the enhancement New feature or request label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants