Skip to content

Rewrite LinksΒ #98

@sindastra

Description

@sindastra

In my articles, I often reference older articles through links.

It would be nice if there was a way to have these links rewritten to point to the markdown file.

E.g.: https://example.com/article/hello-world is downloaded to hello-world.md

So it would be nice if links to hello-world in other-article.md would actually point to hello-world.md

It would be especially nice if I could provide a pattern as an argument using the slug as {slug}, like e.g. localpath/{slug}.md so that I could get localpath/hello-world.md, which would allow me to adapt the pattern to be compatible with any static site generator.

Maybe something like:

--rewrite-links 'localpath/{slug}.md'

In case the base URL cannot be determined automatically:

--rewrite-links-base 'https://example.com/article/' --rewrite-links 'localpath/{slug}.md'

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