pages-gem icon indicating copy to clipboard operation
pages-gem copied to clipboard

Linking to markdown without using [link](link.html)

Open AsixJin opened this issue 7 years ago • 6 comments

Before submitting an issue, please be sure to

This issue affects

  • [ X] The site generated by GitHub Pages
  • [ ] Building sites locally

What did you do (e.g., steps to reproduce)

I linked another markdown file as so => link

This, however, goes to a 404 on GitHub Pages and only works if I write the link as so => link

What did you expect to happen?

for the following link => link to actually go to a rendered markdown file (and not plain text)

What happened instead?

The following link format => link goes to a 404

Additional information

I have scoured the internet with help on this to not avail. I thought the 'jekyll-relative-links' plugin was supposed to achieve this but either I misunderstood the purpose of said plugin or I am using it wrong (even though I followed the instructions on said repo)

AsixJin avatar May 01 '17 16:05 AsixJin

@AsixJin As I mentioned in https://github.com/benbalter/jekyll-relative-links/issues/21#issuecomment-298372603 since this doesn't affect local builds, contacting GitHub support would be the fastest route to getting your issue resolved.

benbalter avatar May 01 '17 17:05 benbalter

@AsixJin Are your MD files inside a collection? A public repo (if it exists or you can create it) could be useful.

dato avatar May 07 '17 17:05 dato

It cost me half day to find the bug: if the link text include [] char, it will not be processed.

For example: [test](test.md) will be transformed correctly, but [[test]](test.md) or [\[test\]](test.md) won't.

hax avatar May 17 '18 14:05 hax

This example :) Its works pakar seo jasa seo kursus seo online kursus adsense online

pakarseozen avatar Jun 22 '19 17:06 pakarseozen

I also have the problem with relative links to a specific file not working at all both on gh-pages and on jekyll locally. Here is my setup->

i have a directory like this:

/
README.md
README.ja.md

and I do a link like [english](README.md) and [japanese](README.ja.md) both links work on github.com (where they render the README below the code directory structure), but DO NOT work on gh-pages. I tested jekyll locally and it also DOES NOT work. If I move the directory structure around like

/
README.md
japanese/
..README.md

this will work... the link has to change to .[japanese](./japanese/)

I can also make this work on the original directory structure at the top if I do links like this-> [japanese](README.ja) (no more .md)

but then it will NOT work on the normal github.com b/c its not a valid link (since the file README.ja does not exist)

Not sure others are clearly stating the problem

IPvSean avatar Aug 02 '19 21:08 IPvSean

Amazing

erwinlagu avatar Jan 09 '22 16:01 erwinlagu