lervag / wiki.vim

A wiki plugin for Vim
MIT License
662 stars 68 forks source link

Markdown: make links with spaces handling as per these standards #386

Open artkpv opened 2 weeks ago

artkpv commented 2 weeks ago

Description

I find the way wiki.vim handles spaces in links confusing as it is clearly diverge from the standards: https://spec.commonmark.org/0.31.2/#links , https://github.github.com/gfm/#links, other. I mean that these are implemented by other apps:

Why not implement in wiki.vim?

Current behavior. A link [How to calculate contra amount](<How to calculate contra amount.md>) opens into <How to calculate contra amount.md>.md file.

Expected behavior. A link [How to calculate contra amount](<How to calculate contra amount.md>) opens into How to calculate contra amount.md.

Similarly for all other functionality: graph, tags, etc.

I guess, this should break current behavior that treats spaces inside link as a valid, i.e. [My link here](my page with spaces.md), but without < and > as an invalid link. I don't know exactly why those standards include this requirement.

Minimal working example

See above

artkpv commented 2 weeks ago

Refs https://github.com/lervag/wiki.vim/issues/199