Skip to content

Removing '.md' strings from template files breaks some URLs #45

@clnsmth

Description

@clnsmth

In content-x, content creators use relative links between markdown templates to simulate navigation among cross-referenced web pages. Before releasing new content, the relative links are converted from the GitHub context, to the web-x context. One step in this process is the removal of '.md' strings from template file contents. See:

md = md.replace(".md", "")

This is all fine and good until a markdown document is part of the target URL, in which case build.py strips the '.md' and web-x readers get a 404 when clicking on the link.

I was unsuccessful in attempts at solving this issue via regex with a backwards looking conditional (i.e. don't remove '.md' when part of a URL).

Other ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions