For example, the link https://github.com/OpenTabletDriver/OpenTabletDriver/blob/ecc888716fc18329749f7b7d278f2b3b5749ff21/README.md?plain=1#L116 results in:

The expected result is that it doesn't contain this line:

The issue primarily stems from the fact that Discord will reject invalid languages for codeblocks (e.g. if it contains invalid characters) and instead emit the full string.
For example, the link https://github.com/OpenTabletDriver/OpenTabletDriver/blob/ecc888716fc18329749f7b7d278f2b3b5749ff21/README.md?plain=1#L116 results in:

The expected result is that it doesn't contain this line:

The issue primarily stems from the fact that Discord will reject invalid languages for codeblocks (e.g. if it contains invalid characters) and instead emit the full string.