Retirement tax questions

The way the MD pamphlet I found explained it, MD does not tax SSA payments. Therefore, if you have SSA payments and Military retirement, the SSA payments are used for the exclusion and the military exclusion is effectively reduced by the excluded SSA payments.