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

Do you want a "set base url" plugin? #113

Open
jarofgreen opened this issue Aug 1, 2024 · 1 comment
Open

Do you want a "set base url" plugin? #113

jarofgreen opened this issue Aug 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jarofgreen
Copy link

Context

Sometimes you have some markdown content that is intended to be hosted at http://www.example.com and so it has things like images with relative links, like /images/cat.png

But sometimes you want to show rendering of this content in other situations. eg Maybe you are providing a nice CMS for people to edit this website at http://cms.example.com or even http://third-party-cms.com/project/example.com

Now, all your links are broken!!!

Proposal

A new "set base url" plugin.

You configure it with a base url like http://www.example.com and it rewrites all URLs like /images/cat.png to http://www.example.com/images/cat.png

Now the rendered HTML can be shown on http://cms.example.com and links work!

Could also be called "make URLs absolute" maybe.

Tasks and updates

I've already started on this and am happy to contribute it here if it's wanted?

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

No branches or pull requests

1 participant