Original sentence: Baphomet is a name of unestablished origin, imagined to refer to a pagan or Islamic deity.It first appeared in a late twelfth century Provençal poem in reference to Muhammad, but later it appeared as a term for a pagan idol in trial transcripts of the Inquisition of the Knights Templar in the early 1300s
Edited sentence: Baphomet is an imagined pagan or Islamic deity of Catholic folklore.It first appeared in a late twelfth century Provençal poem as a corruption of "Muhammad", but later it appeared as a term for a pagan idol in trial transcripts of the Inquisition of the Knights Templar in the early 1300s