As you can see in below screenshot:
In preview mode the bottom padding space is ugly and unnormal, whick I know is for the end of code block, and need improved.
It is not as clean but you can put the ``` next to the last bracket to eliminate the padding for now.