Github integration bug when pasting link with line number selection #346
Replies: 2 comments
-
@addisonschultz I'd appreciate your help with this one. Is Gitbook open-source? I may try to fix this in a PR, just point me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
Are you using the GitHub Files integration (https://app.gitbook.com/integrations/github-files) ? In that case, yes it's open source; it might be a bug in the parser we have in https://github.com/GitbookIO/integrations/blob/main/integrations/github-files/src/github.ts with these regexes https://github.com/GitbookIO/integrations/blob/main/integrations/github-files/src/github.ts#L8-L11 Let me know if you try to fix it with a PR :) |
Beta Was this translation helpful? Give feedback.
-
Having installed the github integration, when pasting a github permalink that is meant to render a line range, will render empty code blocks in gitbook:
Tried with this permalink:
https://github.com/aufacicenta/pulsemarkets/blob/765bf2249e007bdbd64acd22560bc831858383fa/app/src/context/near/prompt-wars-market-contract/NearPromptWarsMarketContractContextController.tsx#L80-L88
Beta Was this translation helpful? Give feedback.
All reactions