Perl POD with file variables line not marked up.#1133
Perl POD with file variables line not marked up.#1133kiwiroy wants to merge 2 commits intogithub:masterfrom
Conversation
|
Ah, I see Linguist specifically detect strategies. The use case that has brought this to my attention is I have a README.pod which is a symlink to a Perl file. 9406690 add "Perl" to the list of languages and the tests pass again, but I have a feeling that there might be unintended consequences elsewhere. |
|
Indeed, we've had some complications with POD recently in linguist: github-linguist/linguist#3863, github-linguist/linguist#3832, github-linguist/linguist#3735. I'll investigate to see if this PR brings up any of those issues again, otherwise hopefully it'll be good to go. |
|
Unfortunately it does cause the same problem we saw before — see this example of https://github.com/sitaramc/gitolite/blob/5c2fe87019dadbecb1883bedd075cd07b07b2078/src/gitolite:
In short, this causes all Perl files to be rendered as POD, so we'll need a solution that avoids this. It will probably require a solution in Linguist so it doesn't classify a |
|
@kivikakk thank you for looking into this. When looking through the linked issues I had the feeling that this was not going to successfully resolve without recreating the issues there. I feel like there needs to be another |
|
I think this shouldn't be too hard; in general we don't display the content of a symlink if you view it directly — we only extend this privilege to READMEs shown inline with a tree. I'll have a poke around. |
|
PRs up at #1139 and github-linguist/linguist#3946 to work this out. Thanks for your report and PR here! |
|
This issue has (finally) been fixed! |
|
Indeed it is. Thanks @kivikakk |


I was pointed here by @cmrberry for an issue I am having regarding POD markup.
When a Perl syntax file with POD contains a line specifying file variables for emacs
the whole file is returned verbatim.
On GitHub this appears thus:
My workaround is to use the alternate syntax
The change to
README.podshould not cause the test to fail but does.The shell script checks the behaviour of
lib/github/commands/pod2htmlwhichappears to markup the POD correctly.