NEW: Thank you everyone who helped me with this! The answer is marked below, and I\'ve expanded on the answer with a functioning version in my question, below (q.v.):
You can use template partial specialization for MarkQuoted, and quote based on the type.