Skip to content

Should filename links be URI-decoded? #805

@josephmturner

Description

@josephmturner

Thank you for markdown-mode!!!

Expected Behavior

Given two files:

.
├── bar baz.md
└── foo.md

It is currently possible to link from foo.md to bar baz.md with [bar baz](<bar baz.md>) (as you explained here). Should [bar baz](bar%20baz.md) also work? What about [bar baz](<bar%20baz.md>)?

I see that #575 calls url-unhex-string for inline images.

Actual Behavior

[bar baz](bar%20baz.md) links to the nonexistent file bar%20baz.md.

Software Versions

  • Markdown Mode: markdown-mode, version 2.7-alpha
  • Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)
  • OS: Debian 12

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