Markdown render hooks extra space

Yes, and as @pamubay pointed out, it ends with a newline character.

If your file did not end with a newline character, the following command would display the > character:

tail -c 1 layouts/_default/_markup/render-link.html

Instead, the above command produced a blank line, indicating that your file ends with a newline character.

Add this at the end of your file to consume the newline:

{{- /* This comment removes trailing newlines. */ -}}