The audience for which Matthew wrote was conversant with the Jewish Scriptures, so when he mentions Tamar in the genealogy, they would know her story. The Torah (Genesis, Exodus, …
With so much modern information embedded in your views, I find it odd that you would still believe in prophecy. Do you? Or do you call Jesus of Nazareth “ …