There Is a Newer Version of the Maryland Code
Maryland Estates and Trusts Section 4-413
§ 4-413.
  If probable cause exists for instituting proceedings, a provision in a will purporting to penalize an interested person for contesting the will or instituting other proceedings relating to the estate is void.