You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
README symlink shown as plain text despite vim modeline #1158
I have the following setup in many of my repositories:
doc/README is a document with a vim:ft=rst modeline. As expected, this is rendered by GitHub as reStructuredText.
Top-level README is a symlink to doc/README. This used to rendered by GitHub as reStructuredText until recently. But now it is shown as plain text. :-(
I'm seeing this too with a toplevel README.md that is a symlink through multiple subdirectories to another README.md and is displayed as plain text. There are no modelines in the target README.md and it is rendered correctly as markdown when viewing that directory.
These all appear working for me! Let me know if the behaviour still looks broken to you, but I'm seeing all READMEs rendered correctly (despite their being symlinks).
Can this be reopened? Or is it best to create a new issue requesting documentation of what is and isn't supported regarding this feature? I and others (#21) are confused.
It looks like there's a README (no extension, treated as plaintext) symlinked to doc/README (which shows as Markdown due to the Vim modeline). The top-level README shows as plaintext, as the filename overrides any other result -- this is probably the missing key. Documentation PRs happily accepted, although they should probably be against Linguist -- the change occurred at github-linguist/linguist#3946.
I see that there is a fundamental difference between what is expected in the two use cases here.
@jwilk would like the contents of the target of the symlink to be examined. The mode line is informative and the desired behaviour and also the discriminator between plain text and markdown - otherwise the content of doc/README appears as plain text to classification (assumption).
In the other use case, the purpose is to change to way a file is processed by augmenting the extension on the filename in the symlink. The difference in the extensions (between the link name and the target) is informative in this case and defines the behaviour.
Activity
kiwiroy commentedon Feb 1, 2018
I'm seeing this too with a toplevel
README.mdthat is a symlink through multiple subdirectories to anotherREADME.mdand is displayed as plain text. There are no modelines in the targetREADME.mdand it is rendered correctly as markdown when viewing that directory.jwilk commentedon Feb 9, 2018
Oh well, this one is now bad, too. But I made archived copy back when it was still good.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
Rename top-level README as README.rst.
kivikakk commentedon Sep 18, 2018
These all appear working for me! Let me know if the behaviour still looks broken to you, but I'm seeing all READMEs rendered correctly (despite their being symlinks).
Demonstration of issue 1158
jwilk commentedon Oct 16, 2018
The bug is still there.
I've set up demonstration repo here:
https://github.com/jwilk-forks/github-markup/tree/issue1158
kiwiroy commentedon Jan 3, 2019
Can this be reopened? Or is it best to create a new issue requesting documentation of what is and isn't supported regarding this feature? I and others (#21) are confused.
kivikakk commentedon Jan 6, 2019
It looks like there's a README (no extension, treated as plaintext) symlinked to doc/README (which shows as Markdown due to the Vim modeline). The top-level README shows as plaintext, as the filename overrides any other result -- this is probably the missing key. Documentation PRs happily accepted, although they should probably be against Linguist -- the change occurred at github-linguist/linguist#3946.
kiwiroy commentedon Jan 6, 2019
There was also some discussion in github-linguist/linguist#3948 I found.
I see that there is a fundamental difference between what is expected in the two use cases here.
@jwilk would like the contents of the target of the symlink to be examined. The mode line is informative and the desired behaviour and also the discriminator between plain text and markdown - otherwise the content of
doc/READMEappears as plain text to classification (assumption).In the other use case, the purpose is to change to way a file is processed by augmenting the extension on the filename in the symlink. The difference in the extensions (between the link name and the target) is informative in this case and defines the behaviour.
I'm unsure how the symlink
README.podin https://github.com/jhthorsen/applify is being treated.