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
Capable reads the line numbers from the link, but the macro has no setting to keep them, so they are dropped.
#What to do
Showing a line range is not supported. Either 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 GitHub site-wide. Important: this only hides the GitHub byline. Existing GitHub macros keep showing on pages. |
#Related
Pasted a GitHub URL and it did not turn into a macro
Only github.com /blob/ links and raw.githubusercontent.com links auto-convert, and only up
Pasted a link like github.com/owner/repo/blob/refs/heads/main/file.md and the macro is broken
The parser used by auto-convert takes the third path segment as the branch without checkin
Everything else
The rest of this family.
Found it? Good.
