Harlan Ellison's original teleplay for the acclaimed 1967 Star Trek episode "The City on the Edge of Forever," which was rewritten before filming began, will be adapted in a miniseries debuting in June from IDW Publishing.

"Presenting Harlan Ellison's brilliant original script for 'City on the Edge...' has been a goal of ours since IDW first began publishing Star Trek comics in 2007," IDW Editor-in-Chief Chris Ryall said in a statement. "The episode justifies its position atop 'best Star Trek episodes' lists but even it ain't nuthin' compared to what Ellison did in his original teleplay. This is truly going to be a Star Trek adventure unlike any other, even to fans who have that beloved episode memorized."

The five-issue Star Trek: Harlan Ellison's City on the Edge of Forever: The Original Teleplay is adapted by writers Scott Tipton and David Tipton and artist J.K. Woodward, with regular covers by Juan Ortiz and variants by Paul Shipper.

"The City on the Edge of Forever" follows Kirk and Spock as the pursue a temporarily delusional McCoy through an ancient time portal, where they end up in 1930s New York City. There they must not only rescue their friend but save their own future, which has been changed by McCoy's actions in the past. The episode won the 1968 Hugo Award for best dramatic presentation.

"It was a superlative joy of my long life to have worked with Leonard Nimoy, who became my friend, and many others at Star Trek," Ellison said, "and an equally heart-happy joy to be working with J.K. and the Tipton Bros. and Chris Ryall on this long-awaited visual of my (humbly, I say it) brilliant original 'City...'"