The question says it all. I'm unsure if this is a bug or not, just something I've noticed over the years on this website.

Currently, if a user posts a question with code at the end of the question, the mark ``` is visible in the code body. A simple solution would be to check if those are the last three characters of a question body, because we can't expect new users to know that a newline after the triple graves would change their visibility.

I propose this change because, in my opinion, it makes the question look more professional. It also helps people that just copy paste code from the question if you decide to post a review. Below is an example of what it looks like currently:

def main():
    print("This section is fine, because ``` are not the final three characters")


def main():
    print("Look below me! You can still see the ```!")



You must log in to answer this question.

Browse other questions tagged .