Skip to content

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

@artkpv

Description

@artkpv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions