I think the question might be part of history, but phrased as something like "there are cases where civilians were trialed by martial court". You can make the question more specific if you add the period of time, country or war where that happened.
Now, I add an answer to your question:
I found an article in spanish that covers changes proposed to military justice in Chile.
"Some 4.500 causes that affect civilians and that today are in the military justice would pass to the ordinary justice, according to the project that was approved yesterday by the Chamber of Deputies by 96 votes in favor and 1 abstention.
The initiative delimits the scope of action of the military courts so that they reach only the uniformed, in addition to totally excluding minors, civilians or uniformed, from the jurisdiction of the military courts. The bill also establishes that, in the cases of co-authorship or co-participation in which civilians and uniformed persons appear involved, the former will be subject to the ordinary courts and the latter to the military."
In Chile, until that date (2010), terrorism or any crime against a militar, was covered by military justice.