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

Links in Headings within diary pages break links on diary index #1408

Open
4 tasks done
fancsali opened this issue Jun 5, 2024 · 0 comments
Open
4 tasks done

Links in Headings within diary pages break links on diary index #1408

fancsali opened this issue Jun 5, 2024 · 0 comments

Comments

@fancsali
Copy link

fancsali commented Jun 5, 2024

Prior to submitting a new issue make sure to complete these steps:

  • Include the VimWiki settings from your .vimrc
let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md', 'auto_diary_index': 1, 'diary_caption_level': 6, 'auto_tags': 1, 'listsyms': ' .X'}]
let g:vimwiki_global_ext = 0
let g:vimwiki_auto_header = 1
let g:vimwiki_emoji_enable = 0
  • Include the syntax you are using (default / Markdown / MediaWiki) -- Markdown
  • Provide a detailed description of the problem including steps to reproduce the issue.
    • Enable diary captions/headings to be show on the diary page: set 'diary_caption_level': 6, for example
    • Go to today's note: <Leader>w<Leader>w
    • Create a heading, that is a link (either by hand, or typing something and then hitting <CR>): ## [FOO](/bar)
      NOTE: Due to g:vimwiki_auto_header = 1 there'll be a top level ("h1") heading above this with the relevant date)
    • Go back to the index: <Leader>wi
    • Observe the link to the heading in question to be broken: - [[FOO](/bar)](2024-06-05#[FOO](/bar)); or with the concealment outside of the cursor row: - FOO](2024-06-05#FOO (also the last part of that gets an underscore)

In other words, the whole Markdown "code" will be interpreted as the "label" and the target of the link gets generated correctly to point to the heading in the diary. As opposed to only the label being taken, and the original link ignore.

  • Include the output of :VimwikiShowVersion.
Version: 2024.01.24
Os: Linux
Vim: 901
Branch: HEAD
Revision: fde35bb
Date: 2024-01-24 20:14:13 -0700
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