Repository navigation
README symlink shown as plain text despite vim modeline #1158
Description
Activity
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.- good (thanks to caching?)
Oh well, this one is now bad, too. But I made archived copy back when it was still good.
- added a commit that references this issue
on Feb 9, 2018 - added 16 commits that reference this issue
on Feb 21, 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).
The bug is still there.
I've set up demonstration repo here:
https://github.com/jwilk-forks/github-markup/tree/issue1158Can 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.
The bug is still there.
I've set up demonstration repo here:
https://github.com/jwilk-forks/github-markup/tree/issue1158It 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.
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.
I have the following setup in many of my repositories:
doc/READMEis a document with avim:ft=rstmodeline. As expected, this is rendered by GitHub as reStructuredText.Top-level
READMEis a symlink todoc/README. This used to rendered by GitHub as reStructuredText until recently. But now it is shown as plain text. :-(Examples:
good (thanks to caching?)
bad
I guess it might be an unintended consequence of fixing #1133?