Skip to content

Links with hex encoded characters do not work (specifically %20) #1670

@simonpoole

Description

@simonpoole

For the app Vespucci (see vespucci.io) we use mkdocs to create the website and a pegdown based system to use the same markdown files for on device documentation.

For various reasons the file names of the individual documents contain spaces and it would be difficult to avoid this. Inter document links work with no issue on device by encoding the spaces as %20, however this does not work with mkdocs because the logic in https://github.com/mkdocs/mkdocs/blob/master/mkdocs/structure/pages.py line 217 does not decode the path before checking if the corresponding file exists.

Naturally the same issue exists for other hex encoded characters and for using "+" as a space replacement.

PS: yes, I know it works if one does not encode the spaces, however that is not "valid" markdown and causes issues with other markdown parsers, for example pegdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions