Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite Links #98

Open
sindastra opened this issue Sep 1, 2023 · 1 comment
Open

Rewrite Links #98

sindastra opened this issue Sep 1, 2023 · 1 comment

Comments

@sindastra
Copy link

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'
@johndsmith2024
Copy link

The tool should rewrite links for images as well, to point to local images. Also, it should have an option to use image in the tar file exported from WordPress, so it won't have to download from the internet (slow).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants