No gospel that promoted gnosticism ever made it into Christian canon. One series of works that didn't make it was found at Nag Hammadi decades ago. It included "Gospel of Thomas" and thousands of pages of other works. When Gospel of Thomas was (very partially) translated, it only included 114 direct sayings of Jesus. Number 114 went:
"Simon Peter said to him, 'Let Mary leave us, for women are not worthy of life.' Jesus said, 'I myself shall lead her in order to make her male, so that she too may become a living spirit resembling you males. For every woman who will make herself male will enter the kingdom of heaven.'"
In Jewish kabbalistic lore, it was commonly held that men made their wives male and women made their husbands female (which was important because unmarried men would, e.g., be incapable of independently contacting female spirits like Shekhinah). When I first read saying 114 (Jesus saying that he would make Mary male), it was clear to me that he was saying that she was his wife. Now, further study of THOSE SAME COPTIC TEXTS has led to direct statements by Jesus that Mary was his wife.
It shouldn't really surprise anyone that Jesus was married. In those days, if you were male and old enough to have wet dreams, or female and old enough to menstruate, you were old enough to have your parents arrange your marriage. Nothing about Jesus' life between ages 12 and 30 appears in Christian canon, but Jewish boys of that time didn't make it past 15 or 16 (and sometimes not past 13) without getting married. If no one in any Gospel brought up how wicked and sacrilegious it was that Jesus wasn't married (and SOMEONE would have), it was almost certainly because he was. Even when he said that not all men had to be married, it caused people to gasp in shock.
I understand that traditional Christians want desperately to believe that Jesus wasn't married (Gods don't get married, right?), but rewriting history has always been popular among history's "winners". In this case, they have only been able to get away with it by not merely rewriting history but by ignoring Jewish law and tradition (and that Jesus was indeed Jewish), which was easily enough done given that they mostly hated Jews.