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

Support for relative urls #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

FastGeert
Copy link

Hi, I love your work on htmlpreview. Great stuff.

I was struggling with links from markdown repositories to html files in the same repository, as I did not find a way to make them relative to the revision.

So in this pull request I added url rewriting to support linking to html files relative to .md
documentation in the same repository of a specific revision.

There is one implication that htmlpreview.github.io will need to be hosted on https, but using caddy that should not be a problem.

Geert Audenaert added 3 commits June 2, 2017 14:10
Added url rewriting to support linking to html files relative to .md
documentation in the same repository of a specific revision.
@not-my-profile
Copy link

Some users disable the HTTP Referer header because of privacy concerns. For those users this trick would result in broken links.

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

Successfully merging this pull request may close these issues.

2 participants