Pasted a link with a line range like #L10-L20 but the whole file is shown

What you are seeing

I pasted a link with a line range like #L10-L20 but the whole file is shown.


#Why it happens

The line numbers are read out of the URL but there is nowhere to store them. The macro configuration has no line-range fields. So they are dropped.


#What to do

Line-range display is not supported. Show the whole file, or split the source file if you only want part of it on the page.


#Settings involved

Setting

Where

What it does

Hide GitHub across the whole site

App property `capable-global-hidden-capabilities`, object name `hiddenCapabilities`, value

Hides the capability tenant-wide. IMPORTANT: this gates the BYLINE ONLY. The macro module has no display conditions, so hiding the capability does not stop existing GitHub macros from rendering on pages.



Found it? Good.